{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/362","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/362/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/362/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/362/events","html_url":"https://github.com/esp8266/Arduino/issues/362","id":83182631,"number":362,"title":"SPIFFS usage","user":{"login":"adrianrb","id":12686959,"avatar_url":"https://avatars.githubusercontent.com/u/12686959?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianrb","html_url":"https://github.com/adrianrb","followers_url":"https://api.github.com/users/adrianrb/followers","following_url":"https://api.github.com/users/adrianrb/following{/other_user}","gists_url":"https://api.github.com/users/adrianrb/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianrb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianrb/subscriptions","organizations_url":"https://api.github.com/users/adrianrb/orgs","repos_url":"https://api.github.com/users/adrianrb/repos","events_url":"https://api.github.com/users/adrianrb/events{/privacy}","received_events_url":"https://api.github.com/users/adrianrb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-31T20:42:56Z","updated_at":"2015-08-14T19:43:19Z","closed_at":"2015-05-31T21:03:44Z","body":"Hi all.\r\n\r\nI´m trying to use the SPIFFS bundled with this project, but stuck.\r\nHow use it? Miss a examples folder?\r\n\r\nMy code:\r\n\r\nFSClass fs(0x30000, 0x40000, 256, 64, 5); // how make this values? I´ve put 0x40000 - 0x10000 (64k before API?) sorry i´m a beginner\r\n\r\nvoid setup()\r\n{\r\n    Serial.begin(9600);\r\n\r\n    Serial.println(\"###### Trying create SPIFFS filesystems on address 0x30000 size 64k\");\r\n    Serial.println(\"###### mounting...\");\r\n    fs.mount();\r\n    Serial.println(\"###### formatting...\");\r\n    fs.format();\r\n    Serial.print(\"###### Total bytes: \");\r\n    Serial.println(fs.totalBytes());\r\n    Serial.print(\"###### Used bytes: \");\r\n    Serial.println(fs.usedBytes()); // <<<<<<<<<< ok till here\r\n    \r\n    Serial.println(\"###### creating a file...\");// >>>>>>>> from here resets over n over...\r\n    char* fname= \"test.txt\";\r\n    if (!fs.exists(fname)) fs.create(fname);\r\n    \r\n    FSFile f = fs.open(fname, FSFILE_OVERWRITE);\r\n    f.write(\"testing... line one\\r\\nline two\");\r\n    f.flush();\r\n    f.close();\r\n    \r\n    Serial.print(\"###### Total bytes: \");\r\n    Serial.println(fs.totalBytes());\r\n    Serial.print(\"###### Used bytes: \");\r\n    Serial.println(fs.usedBytes());\r\n    fs.umount();\r\n}\r\n\r\nAdrian"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/131217391","html_url":"https://github.com/esp8266/Arduino/issues/362#issuecomment-131217391","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/362","id":131217391,"user":{"login":"seclorum","id":232258,"avatar_url":"https://avatars.githubusercontent.com/u/232258?v=3","gravatar_id":"","url":"https://api.github.com/users/seclorum","html_url":"https://github.com/seclorum","followers_url":"https://api.github.com/users/seclorum/followers","following_url":"https://api.github.com/users/seclorum/following{/other_user}","gists_url":"https://api.github.com/users/seclorum/gists{/gist_id}","starred_url":"https://api.github.com/users/seclorum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seclorum/subscriptions","organizations_url":"https://api.github.com/users/seclorum/orgs","repos_url":"https://api.github.com/users/seclorum/repos","events_url":"https://api.github.com/users/seclorum/events{/privacy}","received_events_url":"https://api.github.com/users/seclorum/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T19:43:19Z","updated_at":"2015-08-14T19:43:19Z","body":"Is this re-write why FSFILE_OVERWRITE is no longer available in the current FileSystem.h set of mode enums?  If so: why remove the enum?  Very frustrating practice .."}}