Commit Graph

34 Commits

Author SHA1 Message Date
Ahmed Al-Alousi
1669d456a7 Fix strncpy buffer overflow warning in WiFi configuration (#1106)
- Ensure null termination of SSID string
- Fixes -Werror=stringop-truncation compilation error
- Prevents potential buffer overflow when SSID length equals buffer size

Co-authored-by: Johnny <johnny9dev@pm.me>
2025-07-01 20:18:22 -04:00
mutatrum
3b8598b333 Self_test check and Wi-Fi code moved to modules (#979)
* Move self_test check and Wi-Fi state into their modules

Also removed main.h and superfluous GlobalState inits.

* Fix compile error

* EOL

* Fix compile error
2025-06-15 22:12:21 +02:00
mutatrum
1184810a12 Clean up NVS Wi-Fi credentials code (#859)
* Remove nvs_get_wifi_credits

* Remove function from header
2025-05-15 07:20:54 +02:00
mutatrum
6c7f65e8d9 Handle all Wi-Fi error messages (#819)
* Improve Wi-Fi connection error messages

This refactor is a bit of an oil-spill:
 * Add all Wi-Fi error codes
 * Improve errors on display
 * Set Wi-Fi fields in GlobalState
 * Remove EventGroupHandle for Wi-Fi
 * Remove callback functions from main
 * Generate ap_ssid only once
 * Move packet_type_t from bk1397.h to serial.h
 * Remove asic specific header includes from global_state.h
 * Use NVSDevice_get_wifi_creds in main.c instead of duplicated code

* Remove superfluous zero fill

* Remove bm#### includes

* Show connected status on screen

* Remove hidden flag from self_test finish label

* Remove whitespace

* Remove unused structs

* Add newline at end of file

* Misc cleanup

 * Disable BM1370_SERIALTX_DEBUG
 * Log IP instead of print
 * Fix console error

* Clean up bm13##.h includes

* Try to improve incorrect password errors

* Revert self-test label cleanup

* Revert some more screen cleanup code

* Fix unrelated changes
2025-04-08 13:43:48 +02:00
mutatrum
1dfdfd6e25 Clean up bm13##.h includes 2025-04-04 15:09:45 +02:00
Erik Olof Gunnar Andersson
de3b95e39e Improve AP mode stability by stopping unnecessary Wi-Fi reconnections (#815)
* Don't retry wifi when connected to AP

* Update based on feedback
2025-04-03 17:55:13 +02:00
Erik Olof Gunnar Andersson
a3b7c98845 Expose Wifi RSSI to API endpoint (#739) 2025-03-26 20:58:49 +01:00
WantClue
cbb02389ba Wifi scan fix (#690)
* feature: wifi reconnect disable wifi connect

* fix: scanning flag to prevent reconnect attempts

* fix: add external bool, define globally

* fix: wifi scan on missing ssid

* fix: remove unused connected flag
2025-02-04 03:40:06 +01:00
WantClue
980d213445 SSID WiFi lookup (#679)
* init

* fix: filter out poor networks
2025-02-01 18:19:30 +01:00
Brett Rowan
c98ac818c9 Grandma knows what Wifi means! (#623)
* Grandma knows what Wifi means!

Use Wifi instead of SSID on screen, and add short `(join for setup)` message instead of `Configuration SSID`.
This should be easier to understand, but does add 2 characters, which will fill the screen completely.

* Change NVS configs to init wifi with empty strings, and check for empty string when initializing wifi

* Change `WiFi` to `Wi-Fi` in `connect.c`

* Change what information shows on screen during inital setup and on wifi error

* fix: remove camelCase

remove Bitaxe camel case

---------

Co-authored-by: Upstream Data <brett@upstreamdata.ca>
Co-authored-by: WantClue <86001033+WantClue@users.noreply.github.com>
2025-02-01 18:19:06 +01:00
Erik Olof Gunnar Andersson
695d84ac2a Tune HTTP and System Stability (#571) 2024-12-11 23:23:07 +01:00
mutatrum
848c7807ec LVGL All The Things! (#539) 2024-12-11 23:03:58 +01:00
Erik Olof Gunnar Andersson
8ca3a766f0 Do nothing when roaming 2024-11-09 19:38:07 +01:00
mutatrum
b5e7ae293e Fix ESP-NOW warning by limiting ap max_connections (#426) 2024-11-03 21:13:35 -05:00
Erik Olof Gunnar Andersson
cccae3cabf Enable WiFi 802.11k 802.11v (#365) 2024-10-09 15:45:25 -04:00
Skot
e1bf30b26e Fix compiler warnings (#381)
Fix all compiler warnings and migrate off depreciated ADC and I2C libraries.
---------
Co-authored-by: Erik Olof Gunnar Andersson <eandersson@users.noreply.github.com>
2024-10-08 11:27:32 -04:00
Erik Olof Gunnar Andersson
549e8272e7 Fix wifi status not updating after disconnected (#321) 2024-09-27 23:49:59 -04:00
Skot
8fdbe96b91 print wifi error reason codes. allow connecting to open networks (set empty password) 2024-09-24 19:34:31 -04:00
tommywatson
00a3a0ba3d Code clean resulting from looking into #218 (#220)
* Code clean resulting from looking into #218

* Fixed asic count

Set canary value for invalid device's asic_count

---------

Co-authored-by: tommy <tommy@tommywatson.com>
2024-06-18 08:18:51 +02:00
Benjamin Wilson
a87f1e974c display AP ssid on connecting screen 2024-05-24 20:00:10 -04:00
MoellerDi
0072a0f5c8 add option to configure hostname (#174) 2024-05-23 22:54:39 -04:00
Benjamin Wilson
b53b641c68 Remove wifi max retry, remove max fan speed on reboot 2024-05-23 22:34:11 -04:00
Ben
a30a7ef05f Issue 33, add the last four hex digits of the MAC address to the WiFi name 2023-09-19 20:58:37 -04:00
Ben
a4c473188b Add IP address to display and allow editing of voltage, frequency from AxeOS 2023-09-17 00:01:54 -04:00
Ben
79430f6d3a reformat entire c project 2023-08-26 12:28:17 -04:00
Benjamin Wilson
199c151c0f Http-server (#17)
* rename miner to main

* serving out of storage

* axe os

* http server work

* basic stats showing

* update sdkconfig

* SDKCONFIG

* sdk config

* edit page init

* edit pool config

* pool config edit working

* OTA Success

* remove compiled output

* toggle AP mode with boot button

* favicon

* ota website update

* add sdkconfig.ci back

* update readme

* change website build to warning

* Update github workflow to build web dist

* Allow AP mode before STA connection complete

* spacing for johnny :)

* formatting

* Improve connecting to wifi with AP mode

* added working indicator for UI

* formatting

* formatting

* remove redundant sdkconfig in CMakeLists

* vs code format on save workspace settings

---------

Co-authored-by: johnny9 <985648+johnny9@users.noreply.github.com>
2023-08-26 12:21:41 -04:00
Skot Croshere
ff403395ee wifi connection retry displays on OLED 2023-07-01 14:24:00 -04:00
Skot Croshere
260ba51edb added some basic wifi connection retrys and debugging 2023-07-01 14:23:35 -04:00
johnny9
6949b73bb9 nvs_config: introduce configuration through NVS
Stratum and Wifi configuration can now be read from NVS on the
flash. An example config.cvs file is included and can be used
to generate the partition and then be flashed to the esp32 using
the esp-idf parttool.py.
2023-07-01 14:23:35 -04:00
Skot Croshere
4896d1255b typo 2023-07-01 14:23:35 -04:00
Skot Croshere
486f35694e switched to the recommended wifi station example 2023-07-01 14:23:35 -04:00
Skot Croshere
51b3d344ed cleanup connect Kconfig 2023-07-01 14:23:35 -04:00
Skot Croshere
7226f569eb cleanup connect defines 2023-07-01 14:23:35 -04:00
Skot Croshere
a3b798de7a switch to separate connect component 2023-07-01 14:23:35 -04:00