/**************************************************************************************** ** 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 ** ** 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 LinxESP8266.h) //Also Include Desired LINX Liste0ner From Sketch>>Import Library (In This Case LinxESP8266WifiListener.h) #include #include //Create A Pointer To The LINX Device Object We Instantiate In Setup() LinxESP8266* LinxDevice; //Initialize LINX Device And Listener void setup() { Serial.begin(115200); WiFi.mode(WIFI_STA); WiFi.disconnect(true); //Instantiate The LINX Device LinxDevice = new LinxESP8266(); //The LINX Serial Listener Is Included In WIFI Listener And Pre Instantiated. This Is Necessary For Configuring Wifi Settings. //LinxSerialConnection.Start(LinxDevice, 0); //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_SSID"); LinxWifiConnection.SetSecurity(WPA2_PASSPHRASE); //NONE, WPA2_PASSPHRASE, WPA2_KEY, WEP40, WEO104 LinxWifiConnection.SetPassphrase("YOUR_PASS"); LinxWifiConnection.SetPort(44300); LinxWifiConnection.Start(LinxDevice); } void loop() { //Listen For New Packets From LabVIEW LinxWifiConnection.CheckForCommands(); //Your Code Here, But It will Slow Down The Connection With LabVIEW }