問題タブ [esp8266wifi]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
esp8266 - Node mcu (1.0) ESP8266 12E doesn't respond after IDLE time in soft AP mode
I am trying to set up node mcu as Access Point with static IP. I am able to connect to the AP using tcp sockets and receive response from it.
However, if the client is not connected to it for a certain amount of time, node MCU doesn't respond at all.
Say if 1 hr passed as idle time then node mcu allows clients to connect to the AP but it doesn't respond to the queries.
Here is my code.
I am using Arduino ide to flash the code.
Arduino version: 1.8.10 Board: Node Mcu 1.0 12E Upload speed: 115200 CPU freq: 80Mhz (Board Manager) Esp8266 : 2.6.2
Just to summarize after idle period node mcu let me connect using tcp sockets but it won't turn off/on the led and it doesn't send any response back. If I reset node mcu then it works again.
I am not able to figure out why this is happening. Any help is appreciated.
json - ESP8266 (NodeMCU) と PHP ライブ サーバーの間で POST DATA REQUEST を送受信できませんでした
NODEMCU wifi モジュールをライブ サーバーに接続してから、残りの API と通信したいと考えています。コンテンツを使用して単純なGET
メソッドを呼び出していたときにplain-text
、すべてが正常に機能し、呼び出し中に問題が発生しPOST
、JSON data
. 私のサーバーAPIはARC(Rest APIテストアプリケーション)でうまく動作するようですが。
一緒に働く
- ウィンドウズ10
- Arduino IDE 1.8.12
- Linux Live Server (BIGROCK でホスト)
- セキュア ドメイン (https://)
- API ディレクトリのパーミッションは 755 です
ライブサーバー
ArduinoIDE
Serial Monitor Output
すべての接続が成功し、500 Internal Server Error
応答を形式で出力します。