esp8266

Connect to captive portal wifi using ESP8266

爱⌒轻易说出口 提交于 2019-12-09 06:52:15
问题 I would like to connect an ESP8266 based sensor on a wifi network protected by a captive portal (I've no other option, and I cannot ask for derogation). I have a login/password to connect. From a basic computer, when I'm connected to the network and I do an Internet request (for example, I search "bl" on google), I got a page like this : https://url:1003/fgtauth?12291a0aff04200a <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html

warning: espcomm_sync failed error: espcomm_open failed error: espcomm_upload_mem failed

我只是一个虾纸丫 提交于 2019-12-08 12:02:20
问题 /* * 115200. Connect GPIO 0 of your ESP8266 to VCC and reset the board */ #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include <ESP8266mDNS.h> MDNSResponder mdns; // Network id and pw const char* ssid = "MY_ID"; const char* password = "MY_PASSWORD"; ESP8266WebServer server(80); String webPage = ""; int gpio0_pin = 0; int gpio2_pin = 2; void setup(void) { webPage += "<h1>ESP8266 Web Server</h1><p>Socket #1 <a href=\"socket1On\"><button>ON</button></a> <a href

Why do I need to change the Baudrate after I send a Reset to the ESP8266?

喜欢而已 提交于 2019-12-08 11:35:46
问题 So I have succesfully attached a Esp8266 to an Arduino Due. I can communicate with it via Serial Monitor if I choose the Baudrate to be 74880. Then all the commands come to it correctly and can be read back correctly. However, when I send the command AT+RST which restarts the Esp8266 I can no longer communicate with it and need to reopen the serial connection with a Baudrate of 115200. I have to repeat this every time I load the code new to the Arduino or when I power off the Esp8266. Any

Arduino ESP8266 Library

寵の児 提交于 2019-12-08 06:45:40
问题 I am new to arduino and just picked up myself an UNO and an ESP8266 module. I've managed to wire them all up properly and connected to my home network using the AT commands. But now im trying to follow tutorials on the internet but the problem is every example includes a library #include <ESP8266WiFi.h> such as this example tutorial https://learn.sparkfun.com/tutorials/esp8266-thing-hookup-guide/example-sketch-ap-web-server So I have tried googling for it but can't find anything. I'm assuming

ESP8266 wifi server to android client

孤街醉人 提交于 2019-12-08 03:06:25
问题 Ive been trying to setup a server using ESP8266 wifi module on a particular port. I'm done with that. I want to receive the message from it now. Whenever I connect using socket.connect(), I am able to detect it in the esp8266. But I cant receive any message, the server sends through the same socket. I am trying to obtain the message using DataInputStream inside a while loop continuously in a async task.Pls let me know if my approach or code is wrong! Thanks! This is my code: package test

What is zalloc in embedded programming?

眉间皱痕 提交于 2019-12-07 04:38:46
问题 I am looking into programming the ESP8266 serial-wifi chip. In its SDK examples it makes extensive use of a function called os_zalloc where I would expect malloc . Occasionally though, os_malloc is used as well. So they do not appear to be identical in function. Unfortunately there is no documentation. Can anybody make an educated guess from the following header file? #ifndef __MEM_H__ #define __MEM_H__ //void *pvPortMalloc( size_t xWantedSize ); //void vPortFree( void *pv ); //void

Arduino ESP8266 Library

£可爱£侵袭症+ 提交于 2019-12-06 15:58:05
I am new to arduino and just picked up myself an UNO and an ESP8266 module. I've managed to wire them all up properly and connected to my home network using the AT commands. But now im trying to follow tutorials on the internet but the problem is every example includes a library #include <ESP8266WiFi.h> such as this example tutorial https://learn.sparkfun.com/tutorials/esp8266-thing-hookup-guide/example-sketch-ap-web-server So I have tried googling for it but can't find anything. I'm assuming thats because its really simple and Im missing something quite obvious. help? If you wish to use the

ESP8266——GPIO和外部中断

ⅰ亾dé卋堺 提交于 2019-12-06 13:49:01
1.GPIO    将电路板连接到外部世界并控制其他组件的方法是通过 GPIO 引脚。并非所有引脚都可以使用,在大多数情况下,只能使用引脚 0、2、4、5、12、13、14、15 和 16。分别对应的是开发板上引脚的GPIO0、GPIO2、...GPIO15和GPIO16。 图1-1 NodeMCU开发板引脚示意图 针脚在机器模块中可用,因此请确保首先导入该引脚。然后,您可以使用: >>> pin = machine.Pin(0) 此处,"0"是您要访问的引脚。通常,您希望将引脚配置为输入或输出,并在构造引脚时执行此操作。要使用输入引脚: >>> pin = machine.Pin(0, machine.Pin.IN, machine.Pin.PULL_UP) 对于输入拉取模式,可以使用PULL_UP或无。如果未指定,则默认为"无",即无拉电阻。 GPIO16 没有上拉模式。 您可以使用以下功能读取引脚上的值: >>> pin.value() 0 板上的引脚可能会在此处返回 0 或 1,具体取决于其连接的内容。要使用输出引脚: >>> pin = machine.Pin(0, machine.Pin.OUT) 然后使用: >>> pin.value(0) >>> pin.value(1) 或: >>> pin.off() >>> pin.on() 2.外部中断 除数字 16 外

How to use android to connect to an ESP8266 access point without internet in a stable way?

孤者浪人 提交于 2019-12-06 13:24:39
I have a Wifi Micro controller ESP8266 which also has an access point. I have referred to other blogs which talk about programmatically connecting to an access point and tried both the way Using the exposed standard APIS wifiManager.enableNetwork(netId, true); wifiManager.saveConfiguration(); wifiManager.reconnect(); Using the APIs which have @ hide on them wifiManager.connect(netId, ActionListener) The problem I am facing is that some time after i connect to the access point its getting disconnected from the esp8266 access point and connecting back to my router in both the above mentioned

ESP8266 SDK开发: GPIO输入检测

夙愿已清 提交于 2019-12-06 12:55:13
前言   官方提供了以下函数检测引脚输入状态        检测GPIO5   if( GPIO_INPUT_GET(5) == 0 ) GPIO5当前为低电平   if( GPIO_INPUT_GET(5) == 1 ) GPIO5当前为高电平    检测输入的第一种方式   在引脚为输出的状态下,检测引脚输入状态   注:该模式应用于检测引脚输出的高低电平状态.   PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO5_U , FUNC_GPIO5);   GPIO_OUTPUT_SET(5, 1);//设置GPIO5输出高电平(控制继电器吸合)   if(GPIO_INPUT_GET(5) == 1)   {     printf("\r\n 继电器引脚输出高电平 \r\n");   }              另外:如果某个引脚控制传感器,传感器本身引脚有很强的拉低能力,也可以用此模式检测   列如:开发板的GPIO0外接的按钮      如想检测其是否按下:   PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO0_U , FUNC_GPIO0);   GPIO_OUTPUT_SET(0, 1);//设置GPIO0输出高电平   if(GPIO_INPUT_GET(0) == 0)   {     //按钮按下   }   原因: