J jarda Member Licensed User Longtime User Jul 19, 2016 #1 Hi All I have WiFi ESP8266 modul and I need know: WiiFi 1. How change ESP8266 on mode Wifi client only ? 2. How change IP assigned DHCP on Static IP ? Socket 3. How change WiífiSocket on Server mode ? /for read and write data/ This is not in the library /ESP8266WiFi, WiFiSocket/ Thank for ideas Jarek
Hi All I have WiFi ESP8266 modul and I need know: WiiFi 1. How change ESP8266 on mode Wifi client only ? 2. How change IP assigned DHCP on Static IP ? Socket 3. How change WiífiSocket on Server mode ? /for read and write data/ This is not in the library /ESP8266WiFi, WiFiSocket/ Thank for ideas Jarek
Erel B4X founder Staff member Licensed User Longtime User Jul 20, 2016 #2 1. Call ESP8266WiFi.Connect to connect to an existing wifi network. 2. It is currently not possible. 3. Not sure that I understand the question. WiFiSocket and WiFiServerSocket are exactly the same as EthernetSocket and EthernetServerSocket. Upvote 0
1. Call ESP8266WiFi.Connect to connect to an existing wifi network. 2. It is currently not possible. 3. Not sure that I understand the question. WiFiSocket and WiFiServerSocket are exactly the same as EthernetSocket and EthernetServerSocket.
J jarda Member Licensed User Longtime User Jul 20, 2016 #3 Hi Erel Thank for answer.. 1. I know how calling connect to ESP8266 STA.. I need switch module to STA only (STA only=6mA standby. This mode AP+STA have 80mA standby). Command in C is WiFi.mode(WIFI_STA); 2. Ok 3. I found in WiFIServer.bas example Jarek Upvote 0
Hi Erel Thank for answer.. 1. I know how calling connect to ESP8266 STA.. I need switch module to STA only (STA only=6mA standby. This mode AP+STA have 80mA standby). Command in C is WiFi.mode(WIFI_STA); 2. Ok 3. I found in WiFIServer.bas example Jarek
Erel B4X founder Staff member Licensed User Longtime User Jul 20, 2016 #4 You can use inline C to call it: Code: Copy RunNative("SetSTA", Null) 'this line is inside a Sub #if C void SetSTA(B4R::Object* o) { WiFi.mode(WIFI_STA); } #end if Upvote 0
You can use inline C to call it: Code: Copy RunNative("SetSTA", Null) 'this line is inside a Sub #if C void SetSTA(B4R::Object* o) { WiFi.mode(WIFI_STA); } #end if