{"id":27633818,"url":"https://github.com/djaus2/connect2wifi","last_synced_at":"2025-10-29T09:40:00.841Z","repository":{"id":251486526,"uuid":"837563887","full_name":"djaus2/Connect2WiFi","owner":"djaus2","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-08T03:47:43.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T18:23:52.934Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/djaus2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-08-03T10:51:28.000Z","updated_at":"2024-08-08T03:47:46.000Z","dependencies_parsed_at":"2024-08-08T05:22:32.640Z","dependency_job_id":null,"html_url":"https://github.com/djaus2/Connect2WiFi","commit_stats":null,"previous_names":["djaus2/connect2wifi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/djaus2/Connect2WiFi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaus2%2FConnect2WiFi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaus2%2FConnect2WiFi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaus2%2FConnect2WiFi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaus2%2FConnect2WiFi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djaus2","download_url":"https://codeload.github.com/djaus2/Connect2WiFi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djaus2%2FConnect2WiFi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278266895,"owners_count":25958733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-23T18:20:17.656Z","updated_at":"2025-10-04T04:57:20.084Z","avatar_url":"https://github.com/djaus2.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Connect2WiFi - Arduino\n\nVarious options for connect to a RPi Pico W with Arduino BSP to WiFi. Used in Softa-ata _(Needs an update for latest changes here.)_\n\n----\n\n## Updates\n\n1. Azure IoT Hub Device Connection String added.\n  - Can flash it and read from flash etc.\n2. Refactored to code so as to use a namespace for functional code\n - Simplifies reuse\n3. Refactored code again so is simple to add additional data entities to be stored\n  - Also Pipe | is used as delimeter instead of minus - as that is is used in some datas.\n\n---\n\n## Options\n\n- Connect from EEProm (simulated) settings\n  - Option to write new set if setting found/not found there*.\n- Connect with embedded settings in Header\n- Prompt for settings over Serial\n- Prompt for settings over Bluetooth\n- Call with settings as parameters\n- _(Further)_ Option to use Serial debug messages (which is blocking) or not.\n\n\n\n#### * EEProm Format\n\n- 256 bytes in flash reserved for this\n- First 4 bytes are a key, _(see header)_, used to detect if settings have been written.\n- Format after key is |\u0026lt;SSID\u0026gt;|\u0026lt;Password\u0026gt;|\u0026lt;Hostname\u0026gt;|\u0026lt;AzureIoTHubConnectionString\u0026gt;|\u0026lt;Guid\u0026gt;|\n  \n\n## Provisioning a RPi Pico W with Arduino\n\n- BSP: See [github/earlephilhower/arduino-pico](https://github.com/earlephilhower/arduino-pico)\n- RPi Pico W Simulated EEProm Docs: See [EEPROM Library](https://arduino-pico.readthedocs.io/en/latest/eeprom.html)\n\n## Notes\n\n- By placing the settings in the simulated EEProm, the device can run \"headless\".\n- Whilst the sketch will run as a test, the source files can be used as a library in another sketch.\n- If Using Bluetooth option, start device, pair from a Bluetooth Terminal, send a blank message to start.\n  - Will be prompted in Bluetooth terminal for settings.\n  - I use a Bluetooth terminal on an Android Phone:\n    - [Serial Bluetooth Terminal](https://play.google.com/store/apps/details?id=de.kai_morich.serial_bluetooth_terminal\u0026hl=en_US)  _from GooglePlay._\n- Suggest using this sketch to set EEProm\n- There is an issue with the flash suggesting File Storage alternative. See comments on GitHub [here](https://github.com/earlephilhower/arduino-pico/discussions/2312#discussioncomment-10235870).\n\n## Using in another Sketch\n\n- Add the header file and the .cpp files only\n- #include the the header file  in target sketch source file where used.\n- Call FlashStorage::WiFiConnectwithOptions(int baud, ConnectMode connectMode, bool debug)\n  - ConnectMode:\n    - wifi_is_set\n      - Call WiFiSet(String ssid, String pwd, String hostname) first  \n    - from_eeprom\n    - is_defined\n      - Use values defined in header\n    - serial_prompt\n    -   bt_prompt\n- _If Serial is used but not started  when WiFiConnectwithOptions() is called, then baud is used in starting it._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjaus2%2Fconnect2wifi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjaus2%2Fconnect2wifi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjaus2%2Fconnect2wifi/lists"}