{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/2255","repository_url":"https://api.github.com/repos/esp8266/Arduino","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/2255/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/2255/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/2255/events","html_url":"https://github.com/esp8266/Arduino/issues/2255","id":164724771,"number":2255,"title":"Exception 29 while sending values from HTTP GET to esp12f","user":{"login":"anujmattoo","id":15719098,"avatar_url":"https://avatars.githubusercontent.com/u/15719098?v=3","gravatar_id":"","url":"https://api.github.com/users/anujmattoo","html_url":"https://github.com/anujmattoo","followers_url":"https://api.github.com/users/anujmattoo/followers","following_url":"https://api.github.com/users/anujmattoo/following{/other_user}","gists_url":"https://api.github.com/users/anujmattoo/gists{/gist_id}","starred_url":"https://api.github.com/users/anujmattoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anujmattoo/subscriptions","organizations_url":"https://api.github.com/users/anujmattoo/orgs","repos_url":"https://api.github.com/users/anujmattoo/repos","events_url":"https://api.github.com/users/anujmattoo/events{/privacy}","received_events_url":"https://api.github.com/users/anujmattoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-10T17:14:23Z","updated_at":"2016-07-10T19:52:17Z","closed_at":null,"body":"#### Hardware\r\nHardware:\t\t\t?ESP-12?\r\nCore Version:      \t?2.1.0-rc2?\r\n\r\n### Description\r\n\r\nI am working on HTTP GET Request. I have created ESP wifi as web server. It creates a access point with IP address : 192.168.4.1 When my android app is connected to web server, it sends values every 50ms on 192.168.4.1/R\"VALUE\". Value is integer type (0~1023). Example :- 192.168.4.1/R546\r\n\r\nHowever, it is working fine when I send values every 1s, but esp crashes, when IP is hit every 5ms second. I have captured the crash detail on serial monitor. Attaching the file and code as well. Kindly help.  @igrr \r\n\r\n### Settings in IDE\r\n\r\nModule:  \t\t\tNodeMCU\r\nFlash Size: \t\t4MB/1MB\r\nCPU Frequency:\t\t80Mhz\r\nFlash Mode:\t\t\tqio\r\nFlash Frequency:\t80Mhz\r\nUpload Using:\t\t @SERIAL\r\n\r\n\r\n### Sketch\r\n\r\n```cpp\r\n\r\n#include <ESP8266WiFi.h>\r\n#include <EEPROM.h>\r\n#include <ESP8266WebServer.h>\r\n\r\n#define RED_LED     12\r\n\r\nWiFiServer server(80); //Initialize the server on Port 80\r\n\r\nchar myTestUrl[100];\r\n\r\nvoid setup()\r\n{\r\n\r\n  EEPROM.begin(512);\r\n  Serial.begin(9600); //Start communication between the ESP8266-12E and the monitor window\r\n\r\n  WiFi.mode(WIFI_AP); //Our ESP8266-12E is an AccessPoint\r\n  WiFi.softAP(\"LED_Downlight1\", \"12345678\"); // Provide the (SSID, password); .\r\n  server.begin(); // Start the HTTP Server\r\n\r\n  IPAddress HTTPS_ServerIP = WiFi.softAPIP(); // Obtain the IP of the Server\r\n  Serial.print(\"Server IP is: \"); // Print the IP to the monitor window\r\n  Serial.println(HTTPS_ServerIP);\r\n}\r\n\r\n\r\nvoid loop()\r\n{\r\n  WiFiClient client = server.available();\r\n  if (!client)\r\n  {\r\n    return;\r\n  }\r\n\r\n  String request = client.readStringUntil('\\r');\r\n  //Serial.print(request);\r\n\r\n  request.toCharArray(myTestUrl, 100);\r\n\r\n  char *Red = strstr(myTestUrl, \"/R\");\r\n  if (Red)\r\n  {\r\n    int RedValue  = atoi(Red + 2);\r\n    analogWrite(RED_LED, RedValue);\r\n    Serial.print(\"Red: \");\r\n    Serial.print(\" \");\r\n    Serial.print(RedValue);\r\n    Serial.print(\"\\n\");\r\n\r\n    int SetRedValue = (RedValue / 4);\r\n    EEPROM.write(0, SetRedValue);\r\n\r\n    EEPROM.commit();\r\n\r\n    Serial.print(\"Red Memory Write :\");\r\n    Serial.print(\" \");\r\n    Serial.print(SetRedValue);\r\n    Serial.print(\"\\n \\n\");\r\n\r\n  }\r\n}\r\n```\r\n\r\n<img width=\"748\" alt=\"screen shot 2016-07-10 at 1 59 05 am\" src=\"https://cloud.githubusercontent.com/assets/15719098/16714938/d187298c-46ef-11e6-97b8-412b1d47cc32.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/231607413","html_url":"https://github.com/esp8266/Arduino/issues/2255#issuecomment-231607413","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/2255","id":231607413,"user":{"login":"me-no-dev","id":12663778,"avatar_url":"https://avatars.githubusercontent.com/u/12663778?v=3","gravatar_id":"","url":"https://api.github.com/users/me-no-dev","html_url":"https://github.com/me-no-dev","followers_url":"https://api.github.com/users/me-no-dev/followers","following_url":"https://api.github.com/users/me-no-dev/following{/other_user}","gists_url":"https://api.github.com/users/me-no-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/me-no-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/me-no-dev/subscriptions","organizations_url":"https://api.github.com/users/me-no-dev/orgs","repos_url":"https://api.github.com/users/me-no-dev/repos","events_url":"https://api.github.com/users/me-no-dev/events{/privacy}","received_events_url":"https://api.github.com/users/me-no-dev/received_events","type":"User","site_admin":false},"created_at":"2016-07-10T19:52:17Z","updated_at":"2016-07-10T19:52:17Z","body":"I'll try your sketch and I'll see what I can do. One thing to note is EEPROM.commit() You will wear out the flash at the EEPROM sector really quick if you write to it with every request. the flash has around 100000 write/erase cycles"}}
{"actor":{"display_login":"me-no-dev"}}