This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \ "string =", really a "starts with" check. Returns true if the first u2 characters | |
| \ in c-addr2 match c-addr1. | |
| : s= ( c-addr1 c-addr2 u2 -- b ) | |
| tuck compare 0= ; | |
| \ Reads up to 99 digits from c-addr and parses them into a number. Returns the number | |
| \ and c-addr2 which points to the character beyond the parsed number. | |
| : get-number ( c-addr -- n c-addr2 ) | |
| 99 0 s>d 2swap >number rot 2drop ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * WiFi Credential Manager example | |
| * Written by Clyne Sullivan. | |
| * | |
| * This Arduino sketch stores WiFi SSID and passkey information in non-volatile | |
| * EEPROM in order to connect to a given network. If these credentials are not | |
| * saved, an access point will be started with a web server allowing the user | |
| * to input new credentials. The access point can also be started by grounding | |
| * the "CredsResetPin" pin (default pin 0). | |
| * |