Skip to content

Commit

Permalink
Changed the variable length of wifi_psk
Browse files Browse the repository at this point in the history
WiFi PSK can be 256 bits = 32 Bytes and can be represented by a 64 character long hexadecimal string
The size of the variable must be 65 bytes to hold the string and the trailing \0
  • Loading branch information
tobi-sys authored and caveman99 committed Nov 15, 2023
1 parent 36bd105 commit c845b78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meshtastic/config.options
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*NetworkConfig.wifi_ssid max_size:33
*NetworkConfig.wifi_psk max_size:64
*NetworkConfig.wifi_psk max_size:65
*NetworkConfig.ntp_server max_size:33
*NetworkConfig.rsyslog_server max_size:33

Expand All @@ -11,4 +11,4 @@
*LoRaConfig.coding_rate int_size:8
*LoRaConfig.channel_num int_size:16

*PowerConfig.device_battery_ina_address int_size:8
*PowerConfig.device_battery_ina_address int_size:8

0 comments on commit c845b78

Please sign in to comment.