Hello, I'm trying to connect to Bittle using the included WiFi adapter but I'm facing some difficulties.
First, of all, I have no previous knowledge about connecting to these kind of devices; I'm making assumptions about how it works.
From what I've seen, the WiFi adapter uses a ESP-WROOM-02D module, that is based on ESP8266.
It seems to be working as a Soft Access Point, so, in order to control Bittle:
· I have to connect to the WiFi Network that appears as ESP-XXXXXX when I turn on Bittle.
· To control Bittle, I have to send the commands to the ESP8266 module, which will comunicate through serial connection with Bittle (am I right?).
Once I connect to "Bittle's network", it starts making some noises periodically. At this point is where I don't know how to proceed.
I have checked that I have connection to Bittle's ip (ok).
I have tried to access to Bittle's ip from a web browser, but it shows ERR_CONNECTION_REFUSED.
FYI: When I try to use the IR remote controller, Bittle beeps several times quickly but doesn't react.
What should I do next in order to send commands (e.g. 'kbalance') and receive Bittle's response? (I'm planning to send the commands using python, but any kind of guidance will be appreciated).
Router FIX!
I had mentioned that for my ASUS router I had to set WIFI mode to legacy in order fo the ESP8266 to connect. The problem was that I like to use the router's "Smart Connect" feature which just shows 1 SSID for both 2.4 and 5Ghz and the router figures out which to connect the device to. Unfortunately, when this is enabled it changes the WIFI mode to auto and there is not an option to change it.
The answer, I found if you downgrade the ESP8266 Community in Boards Manager to 2.5.1 it connects with no problem regardless of the router setting. I guess it's not just the IRremote that needs an older version.
I also noticed that when the WiFi model successfully connects to my router the red light on the board comes on. If the red light does not come on I know the connection has failed and the module reverted back to the defaults the there will be the Bittle-AP showing up in my available wireless network list.
And yes, I am now able to get to the action page with not problems. But I might want to edit that up a little. :)
I want to add that I seem to have found a sweet spot! Watching the serial monitor I could see it would try to join my network and fail. After that it would revert back to the Bittle-AP, at that point I go to my wifi and join it and then open a new web browser page. This brought me back to the wifi manager page! And on the bottom of one of the pages it listed extra command you can use on the end of the URL.
The WiFi module is used for programming, not the simple transparent transport bridge through the WiFi and the Serial.
The English version of the tutorial for the WiFi module is under construction, it will be finished in a few days.
thanks, I will test it
@Rongzhong Li I can control Bittle from Webclient through WIFI at my IP address 192.168.88.33 using the control panel. How can I run a script in python run in Ubuntu/Windows through WIFI, for example example.py one that you provide in ardSerial package ? I can run it through RPi wire-connected through serial (RPi-NYBoard), but I cannot figure out how to run the same without RPi and with WIFI adapter plugged into NYBoard. Also I would like to test WIFI from RPi instead of using Ubuntu/Windows.