Loxone support added (#1185)
* A separate socket for UDP api has been added. This uses the same API as HTML. Commands for Loxone were added to the API. * html files for udp api newly generated * codm pixel controller board configurations added to platformio.ini file * Parser for LX/LY commands adapted. Calculation of the values corrected. Segment handling for LX/LY removed. * Lox parser moved to own file. Lox parser added to the JSON api. Within a segment LX and LY are now supported. * serial port removed * F() macro added Co-authored-by: Marius Groos <marius.groos@codm.de>
This commit is contained in:
@@ -284,6 +284,10 @@ void saveSettingsToEEPROM()
|
||||
} // last used: 2549. maybe leave a few bytes for future expansion and go on with 2600 kthxbye.
|
||||
#endif
|
||||
|
||||
EEPROM.write(2550, udpApiEnabled);
|
||||
EEPROM.write(2551, udpApiPort & 0xFF);
|
||||
EEPROM.write(2552, (udpApiPort >> 8) & 0xFF);
|
||||
|
||||
commit();
|
||||
}
|
||||
|
||||
@@ -538,6 +542,11 @@ void loadSettingsFromEEPROM(bool first)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (lastEEPROMversion > 19) {
|
||||
udpApiEnabled = EEPROM.read(2550);
|
||||
udpApiPort = EEPROM.read(2551) + ((EEPROM.read(2552) << 8) & 0xFF00);
|
||||
}
|
||||
|
||||
receiveDirect = !EEPROM.read(2200);
|
||||
notifyMacro = EEPROM.read(2201);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user