/**************************************************************************************** ** This is example LINX firmware for use with the ESP8266 device ** ** For more information see: www.labviewmakerhub.com/linx ** For support visit the forums at: www.labviewmakerhub.com/forums/linx ** ** Written By Ken Sharp ** ** BSD2 license. ****************************************************************************************/ //Include All Peripheral Libraries Used By LINX #include #include #include #include #include //Include Device Specific Header From Sketch>>Import Library (In This Case LinxChipkitMax32.h) //Also Include Desired LINX Listener From Sketch>>Import Library (In This Case LinxSerialListener.h) #include #include //Create A Pointer To The LINX Device Object We Instantiate In Setup() LinxESP8266* LinxDevice; //Initialize LINX Device And Listener void setup() { //Instantiate The LINX Device LinxDevice = new LinxESP8266(); //The LINX Listener Is Pre Instantiated. //Set SSID (Network Name), Security Type, Passphrase/Key, And Call Start With Desired Device IP and Port LinxWifiConnection.SetSsid("YOUR_NETWORK_NAME"); LinxWifiConnection.SetSecurity(WPA2_PASSPHRASE); //NONE, WPA2_PASSPHRASE, WPA2_KEY, WEP40, WEO104 LinxWifiConnection.SetPassphrase("PASSPHRASE"); //NONE, WPA2_PASSPHRASE, WPA2_KEY, WEP40, WEO104 LinxWifiConnection.Start(LinxDevice, 192, 168, 1, 128, 44300); //Start With Fixed IP and Port. When Using This Method You Cannot Update The IP/Port Using LINX VIs } void loop() { //Listen For New Packets From LabVIEW LinxWifiConnection.CheckForCommands(); //Your Code Here, But It will Slow Down The Connection With LabVIEW }