ahoy/tools/esp8266/esp8266.ino
lumapu a7add69719 * renamed .ino (must be identical to parent folder name)
* build CRC over settings, only if the CRC matches settings are applied
* send command 0x80 (set time was wrong)
* improved crc16 routine
* added statistics for received commands and send statistics (channels are not correct for now!)
* receive of commands 0x01, 0x02, 0x03, 0x81 and 0x84 working
2022-04-20 08:58:23 +02:00

25 lines
592 B
C++

#include "app.h"
app myApp;
//-----------------------------------------------------------------------------
void setup() {
pinMode(RF24_IRQ_PIN, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(RF24_IRQ_PIN), handleIntr, FALLING);
// AP name, password, timeout
myApp.setup("ESP AHOY", "esp_8266", 15);
}
//-----------------------------------------------------------------------------
void loop() {
myApp.loop();
}
//-----------------------------------------------------------------------------
ICACHE_RAM_ATTR void handleIntr(void) {
myApp.handleIntr();
}