
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

24 | P a g e
Following are the definitions of the major variables, we have used in this code.
num : This variable represents the current number of nodes in the network and assumes the value 1, when ‘Start Simulation’ is pressed.
IPs_Stack: This is a 2d array that contains IPs. These are randomly choosen IPs that are assigned to the new devices that connect to the piconet as slaves.
status: This variable is a string that contains the current status message string to be shown in ‘edit1’ text box.
nodes: It is a structure array that contains the device name, IP address and pincode of each node present in the network. The fields are assigned the following names:
Device_Name
IP
Pincode