15 August 2016 at 11:50 #189
ESP8266 WIFI MODULE CONTROL WITH TINYLAB
To configure the module; navigate to File>Example>Communucation>Multiserial and change the line Serial1.begin(9600) to Serial1.begin(115200). After changing the code, upload to code to Tinylab via Arduino IDE.
- The Serial Monitor must be configured as shown: Click here
- If you AT to the line of instructions of Serial port monitor, the ESP module will return you with a message OK. This message means that you can communicate with the modul
- You can find out the version of your module with the command: AT+GMR.
- We can obtain the current mode module runs at with the command AT+CWMODE?. The module will return with 1,2 or 3. If the modul return with 1, it is in STA mode and it is the mode which we will use. It means the module can communicate with other networks. There are two more modes apart from the STA mode, called Access Point(AP) and the mode that uses these two modes together.
- We have to give the command AT+CWMODE=1 to enter the modul in STA mod, thus we can connect to the other networks in the context.
- We can list all the network connections with the command AT+CWLAP
- We can unlink the wi-fi connection with the command AT+CWQAP and we can find out the IP address that we use with the command AT+CIFSR. Click here to view all commands about the module.
You can glance this album:15 August 2016 at 17:57 #200
works thanks for sharing
– now I need to figure out how to upload to the ESP8266
WIFI GOT IP
”16 August 2016 at 07:01 #204
OK congratulations 🙂
You operated this module. You can tweet in Twitter so glance this link.19 August 2016 at 21:59 #226
There are several typos in the topic post.
- The line Serial1.begin(9600) should be changed to Serial1.begin(115200) (not 112500).
- The module version report is AT+GMR (not AT+GWR).
- The command to list access points is AT+CWLAP (not AT+CWLAB).
- The command to connect to an access point is AT+CWJAP=”SSID”,”Password” (not listed in the original)
Also note that all AT commands must be given in upper case.20 August 2016 at 01:18 #227
sparkfun has a good datasheet on AT commands ESP8266__AT_Instruction_Set__EN_v0.30.pdf, too20 August 2016 at 08:26 #228
Thanks @gtinylab for corregenda. Presumably, error occurred while loading the form. Sorry22 August 2016 at 00:48 #230
Should I use ESP8266WiFi.h library?22 August 2016 at 07:41 #233
Not necessary for this application. Just the above simply follow.22 August 2016 at 07:48 #234
You should write AT+CIFSR for the learn to module’s IP and MAC address22 August 2016 at 14:00 #236
Although you don’t need any library for @ozgurtzc‘s example, I have been looking for a library to use for my own apps.
I found the list of resources at https://yaab-arduino.blogspot.co.uk/2015/03/esp8266-resources.html useful and I have used that person’s WiFiEsp library for my development. It has the advantage of being largely compatible with the standard WiFi library so I could easily adapt other code.
You must be logged in to reply to this topic.