{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/2214","repository_url":"https://api.github.com/repos/esp8266/Arduino","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/2214/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/2214/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/2214/events","html_url":"https://github.com/esp8266/Arduino/issues/2214","id":163501393,"number":2214,"title":"Changing SPIFFS size on each OTA update","user":{"login":"david476","id":5377358,"avatar_url":"https://avatars.githubusercontent.com/u/5377358?v=3","gravatar_id":"","url":"https://api.github.com/users/david476","html_url":"https://github.com/david476","followers_url":"https://api.github.com/users/david476/followers","following_url":"https://api.github.com/users/david476/following{/other_user}","gists_url":"https://api.github.com/users/david476/gists{/gist_id}","starred_url":"https://api.github.com/users/david476/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david476/subscriptions","organizations_url":"https://api.github.com/users/david476/orgs","repos_url":"https://api.github.com/users/david476/repos","events_url":"https://api.github.com/users/david476/events{/privacy}","received_events_url":"https://api.github.com/users/david476/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-02T04:30:48Z","updated_at":"2016-07-02T18:58:44Z","closed_at":null,"body":"#### Hardware\r\nHardware: ESP-12f\r\nCore Version: 2.3.0\r\n\r\n### Description\r\n\r\nEvery time I update over OTA I need to change the SPIFFS size, otherwise I get [ERROR]: No answer\r\n\r\n### Settings in IDE\r\n\r\nModule: Generic ESP8266 Module?\r\nFlash Size: \t\t4MB/1MB and 4MB/3MB\r\nCPU Frequency: 80Mhz\r\nFlash Mode: dio or qio (it doesn't seem to make a difference, what is it?)\r\nFlash Frequency: 40Mhz\r\nUpload Using: OTA\r\nReset Method:\tck\r\n\r\n\r\n### Sketch\r\n\r\n```\r\n#include <ESP8266WiFi.h>\r\n#include <ESP8266mDNS.h>\r\n#include <WiFiUdp.h>\r\n#include <ArduinoOTA.h>\r\n\r\nconst char* ssid = \"DEB_WIFI\";\r\nconst char* password = \"you'rewelcome\";\r\n\r\nvoid setup() {\r\n  Serial.begin(115200);\r\n  Serial.println(\"Booting\");\r\n  WiFi.mode(WIFI_STA);\r\n  WiFi.begin(ssid, password);\r\n  while (WiFi.waitForConnectResult() != WL_CONNECTED) {\r\n    Serial.println(\"Connection Failed! Rebooting...\");\r\n    delay(5000);\r\n    ESP.restart();\r\n  }\r\n\r\n  // Port defaults to 8266\r\n  // ArduinoOTA.setPort(8266);\r\n\r\n  // Hostname defaults to esp8266-[ChipID]\r\n  // ArduinoOTA.setHostname(\"myesp8266\");\r\n\r\n  // No authentication by default\r\n  // ArduinoOTA.setPassword((const char *)\"123\");\r\n\r\n  ArduinoOTA.onStart([]() {\r\n    Serial.println(\"Start\");\r\n  });\r\n  ArduinoOTA.onEnd([]() {\r\n    Serial.println(\"\\nEnd\");\r\n  });\r\n  ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {\r\n    Serial.printf(\"Progress: %u%%\\r\", (progress / (total / 100)));\r\n  });\r\n  ArduinoOTA.onError([](ota_error_t error) {\r\n    Serial.printf(\"Error[%u]: \", error);\r\n    if (error == OTA_AUTH_ERROR) Serial.println(\"Auth Failed\");\r\n    else if (error == OTA_BEGIN_ERROR) Serial.println(\"Begin Failed\");\r\n    else if (error == OTA_CONNECT_ERROR) Serial.println(\"Connect Failed\");\r\n    else if (error == OTA_RECEIVE_ERROR) Serial.println(\"Receive Failed\");\r\n    else if (error == OTA_END_ERROR) Serial.println(\"End Failed\");\r\n  });\r\n  ArduinoOTA.begin();\r\n  Serial.println(\"Ready\");\r\n  Serial.print(\"IP address: \");\r\n  Serial.println(WiFi.localIP());\r\n\r\n  pinMode(13, OUTPUT);\r\n}\r\n\r\nvoid loop() {\r\n  ArduinoOTA.handle();\r\n  digitalWrite(13, HIGH);\r\n  delay(100);\r\n  digitalWrite(13, LOW);\r\n  delay(100);\r\n  digitalWrite(13, HIGH);\r\n  delay(100);\r\n  digitalWrite(13, LOW);\r\n  delay(700);\r\n}\r\n```\r\n\r\n### Debug Messages\r\n\r\n```\r\nSketch uses 243,495 bytes (23%) of program storage space. Maximum is 1,044,464 bytes.\r\nGlobal variables use 32,972 bytes (40%) of dynamic memory, leaving 48,948 bytes for local variables. Maximum is 81,920 bytes.\r\n21:30:33 [ERROR]: No Answer\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/230116843","html_url":"https://github.com/esp8266/Arduino/issues/2214#issuecomment-230116843","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/2214","id":230116843,"user":{"login":"krzychb","id":12953787,"avatar_url":"https://avatars.githubusercontent.com/u/12953787?v=3","gravatar_id":"","url":"https://api.github.com/users/krzychb","html_url":"https://github.com/krzychb","followers_url":"https://api.github.com/users/krzychb/followers","following_url":"https://api.github.com/users/krzychb/following{/other_user}","gists_url":"https://api.github.com/users/krzychb/gists{/gist_id}","starred_url":"https://api.github.com/users/krzychb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzychb/subscriptions","organizations_url":"https://api.github.com/users/krzychb/orgs","repos_url":"https://api.github.com/users/krzychb/repos","events_url":"https://api.github.com/users/krzychb/events{/privacy}","received_events_url":"https://api.github.com/users/krzychb/received_events","type":"User","site_admin":false},"created_at":"2016-07-02T18:58:44Z","updated_at":"2016-07-02T18:58:44Z","body":"Does the issue occur with original BasicOTA.ino example (without 1000 ms delay in loop())?"}}
{"actor":{"display_login":"krzychb"}}