Add option to set up for wifi or AP on compile #53

Merged
W1CDN merged 9 commits from access-point into main 2023-10-01 11:29:23 -05:00
Owner

When using as an AP, go to 192.168.0.1 to access webform.

Closes #22.

https://randomnerdtutorials.com/esp32-access-point-ap-web-server/

When using as an AP, go to `192.168.0.1` to access webform. Closes #22. https://randomnerdtutorials.com/esp32-access-point-ap-web-server/
W1CDN added 1 commit 2023-09-25 21:38:09 -05:00
W1CDN added the
enhancement
label 2023-09-25 21:38:36 -05:00
Author
Owner

I'm not going to individually number each device. If needed, they can be plugged in one by one to distinguish them.

I'm not going to individually number each device. If needed, they can be plugged in one by one to distinguish them.
mattbk added 1 commit 2023-09-25 21:47:58 -05:00
Author
Owner

I guess I should address these:

src/main.cpp: In function 'void setup()':
src/main.cpp:361:18: warning: comparison with string literal results in unspecified behaviour [-Waddress]
   if (network == "wifi"){
                  ^
src/main.cpp:372:25: warning: comparison with string literal results in unspecified behaviour [-Waddress]
   } else if (network == "ap"){
I guess I should address these: ``` src/main.cpp: In function 'void setup()': src/main.cpp:361:18: warning: comparison with string literal results in unspecified behaviour [-Waddress] if (network == "wifi"){ ^ src/main.cpp:372:25: warning: comparison with string literal results in unspecified behaviour [-Waddress] } else if (network == "ap"){ ```
mattbk added 1 commit 2023-09-25 21:54:45 -05:00
mattbk added 1 commit 2023-09-25 22:02:08 -05:00
mattbk added 1 commit 2023-09-25 22:06:54 -05:00
mattbk added 1 commit 2023-09-26 20:57:47 -05:00
Author
Owner

Decent progress on #54 tonight. Yet to do:

  • have form button reboot device
  • if existing wireless network, report IP address to user somehow other than serial connection #55
    • flash LED in morse, last three digits? More digits if different than 192.168.0.xxx?
  • make sure it defaults to AP if wireless network can't connect
Decent progress on #54 tonight. Yet to do: - [x] have form button reboot device - ~~if existing wireless network, report IP address to user somehow other than serial connection~~ #55 - flash LED in morse, last three digits? More digits if different than `192.168.0.xxx`? - [x] make sure it defaults to AP if wireless network can't connect
mattbk added 1 commit 2023-09-27 20:12:44 -05:00
Author
Owner

I think I got "default to AP" set up, but the "reset in code" method seems to be "crash the device." It is "working," though.

I think I got "default to AP" set up, but the "reset in code" method seems to be "crash the device." It *is* "working," though.
mattbk added 1 commit 2023-09-27 20:43:09 -05:00
mattbk added 1 commit 2023-09-27 20:56:40 -05:00
Author
Owner

Looking pretty good.

Looking pretty good.
W1CDN merged commit 52b910ed79 into main 2023-10-01 11:29:23 -05:00
W1CDN deleted branch access-point 2023-10-01 11:29:40 -05:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: W1CDN/vulpes#53
No description provided.