mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-20 20:36:11 +02:00
fix #472 refactored ahoyWifi class completely
-> now Ahoy opens an AP during boot. This will be closed once a station WiFi connection is established improved NTP after boot, will be synced immediately after successful WiFi connection
This commit is contained in:
parent
614af26cd9
commit
7c6ab6792b
9 changed files with 129 additions and 204 deletions
|
@ -139,14 +139,15 @@ class HmRadio {
|
|||
mNrf24.setPALevel(ampPwr & 0x03);
|
||||
mNrf24.startListening();
|
||||
|
||||
DPRINTLN(DBG_INFO, F("Radio Config:"));
|
||||
mNrf24.printPrettyDetails();
|
||||
|
||||
mTxCh = setDefaultChannels();
|
||||
|
||||
if(!mNrf24.isChipConnected()) {
|
||||
DPRINTLN(DBG_WARN, F("WARNING! your NRF24 module can't be reached, check the wiring"));
|
||||
if(mNrf24.isChipConnected()) {
|
||||
DPRINTLN(DBG_INFO, F("Radio Config:"));
|
||||
mNrf24.printPrettyDetails();
|
||||
}
|
||||
else
|
||||
DPRINTLN(DBG_WARN, F("WARNING! your NRF24 module can't be reached, check the wiring"));
|
||||
}
|
||||
|
||||
void loop(void) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue