mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 13:16:32 +00:00
Enable payload of >32 bit length
This commit is contained in:
parent
8eacb36f71
commit
f5871c0a4b
@ -98,7 +98,7 @@ void CmndRfSend(void)
|
||||
bool error = false;
|
||||
|
||||
if (XdrvMailbox.data_len) {
|
||||
unsigned long data = 0;
|
||||
unsigned long long data = 0; // unsigned long long => support payload >32bit
|
||||
unsigned int bits = 24;
|
||||
int protocol = 1;
|
||||
int repeat = 10;
|
||||
@ -109,7 +109,7 @@ void CmndRfSend(void)
|
||||
if (root) {
|
||||
// RFsend {"data":0x501014,"bits":24,"protocol":1,"repeat":10,"pulse":350}
|
||||
char parm_uc[10];
|
||||
data = root.getUInt(PSTR(D_JSON_RF_DATA), data);
|
||||
data = root.getULong(PSTR(D_JSON_RF_DATA), data); // read payload data even >32bit
|
||||
bits = root.getUInt(PSTR(D_JSON_RF_BITS), bits);
|
||||
protocol = root.getInt(PSTR(D_JSON_RF_PROTOCOL), protocol);
|
||||
repeat = root.getInt(PSTR(D_JSON_RF_REPEAT), repeat);
|
||||
|
Loading…
x
Reference in New Issue
Block a user