|
@ -490,12 +490,16 @@ class Communication : public CommQueue<> { |
|
|
|
|
|
|
|
|
case TurnOn: [[fallthrough]]; |
|
|
case TurnOn: [[fallthrough]]; |
|
|
case TurnOff: //[[fallthrough]];
|
|
|
case TurnOff: //[[fallthrough]];
|
|
|
|
|
|
if (NULL != mCbPwrPowerAck) { |
|
|
(mCbPwrPowerAck)(q->iv); |
|
|
(mCbPwrPowerAck)(q->iv); |
|
|
|
|
|
} |
|
|
return true; |
|
|
return true; |
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
|
case Restart: |
|
|
case Restart: |
|
|
|
|
|
if (NULL != mCbPwrRebootAck) { |
|
|
(mCbPwrRebootAck)(q->iv); |
|
|
(mCbPwrRebootAck)(q->iv); |
|
|
|
|
|
} |
|
|
return true; |
|
|
return true; |
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
@ -519,7 +523,9 @@ class Communication : public CommQueue<> { |
|
|
DBGPRINT(F(" with PowerLimitControl ")); |
|
|
DBGPRINT(F(" with PowerLimitControl ")); |
|
|
DBGPRINTLN(String(q->iv->powerLimit[1])); |
|
|
DBGPRINTLN(String(q->iv->powerLimit[1])); |
|
|
q->iv->actPowerLimit = 0xffff; // unknown, readback current value
|
|
|
q->iv->actPowerLimit = 0xffff; // unknown, readback current value
|
|
|
|
|
|
if (NULL != mCbPwrAck) { |
|
|
(mCbPwrAck)(q->iv); |
|
|
(mCbPwrAck)(q->iv); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return accepted; |
|
|
return accepted; |
|
|
} |
|
|
} |
|
@ -606,12 +612,15 @@ class Communication : public CommQueue<> { |
|
|
for (uint8_t i = 0; i < rec->length; i++) { |
|
|
for (uint8_t i = 0; i < rec->length; i++) { |
|
|
q->iv->addValue(i, mPayload.data(), rec); |
|
|
q->iv->addValue(i, mPayload.data(), rec); |
|
|
} |
|
|
} |
|
|
(mCbNewData)(q->iv); |
|
|
|
|
|
rec->mqttSentStatus = MqttSentStatus::NEW_DATA; |
|
|
rec->mqttSentStatus = MqttSentStatus::NEW_DATA; |
|
|
|
|
|
|
|
|
q->iv->rssi = rssi; |
|
|
q->iv->rssi = rssi; |
|
|
q->iv->doCalculations(); |
|
|
q->iv->doCalculations(); |
|
|
|
|
|
|
|
|
|
|
|
if (NULL != mCbNewData) { |
|
|
|
|
|
(mCbNewData)(q->iv); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if(AlarmData == q->cmd) { |
|
|
if(AlarmData == q->cmd) { |
|
|
uint8_t i = 0; |
|
|
uint8_t i = 0; |
|
|
while(1) { |
|
|
while(1) { |
|
|