* 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
This commit is contained in:
lumapu 2022-04-20 08:58:23 +02:00
parent 5f927ad8c5
commit a7add69719
11 changed files with 226 additions and 123 deletions

View file

@ -15,7 +15,7 @@
//-------------------------------------
#define VERSION_MAJOR 0
#define VERSION_MINOR 1
#define VERSION_PATCH 7
#define VERSION_PATCH 9
//-------------------------------------
@ -24,14 +24,18 @@
#define SSID_LEN 32
#define PWD_LEN 64
#define DEVNAME_LEN 32
#define CRC_LEN 2
#define HOY_ADDR_LEN 6
#define ADDR_SSID 0 // start address
#define ADDR_START 0
#define ADDR_SSID ADDR_START
#define ADDR_PWD ADDR_SSID + SSID_LEN
#define ADDR_DEVNAME ADDR_PWD + PWD_LEN
#define ADDR_HOY_ADDR ADDR_DEVNAME + DEVNAME_LEN
#define ADDR_NEXT ADDR_HOY_ADDR + HOY_ADDR_LEN
#define ADDR_SETTINGS_CRC 200
#endif /*__DEFINES_H__*/