Alpha version of the code. Errors are still present in the code and the objects and dataused are picked as a test. Documentation of the code will be also added later.
This commit is contained in:
@ -620,7 +620,6 @@ void DeviceHandlerBase::doGetRead() {
|
||||
}
|
||||
|
||||
cookieInfo.state = COOKIE_UNUSED;
|
||||
|
||||
ReturnValue_t result = communicationInterface->readReceivedMessage(
|
||||
comCookie, &receivedData, &receivedDataLen);
|
||||
|
||||
@ -656,6 +655,7 @@ void DeviceHandlerBase::parseReply(const uint8_t* receivedData,
|
||||
// scanForReply routines.
|
||||
uint32_t remainingLength = receivedDataLen;
|
||||
for (uint32_t count = 0; count < receivedDataLen; count++) {
|
||||
|
||||
result = scanForReply(receivedData, remainingLength, &foundId,
|
||||
&foundLen);
|
||||
switch (result) {
|
||||
@ -663,8 +663,10 @@ void DeviceHandlerBase::parseReply(const uint8_t* receivedData,
|
||||
handleReply(receivedData, foundId, foundLen);
|
||||
break;
|
||||
case APERIODIC_REPLY: {
|
||||
sif::debug<<" DH: debug1"<<std::endl;
|
||||
result = interpretDeviceReply(foundId, receivedData);
|
||||
if (result != RETURN_OK) {
|
||||
sif::debug<<" DH: debug2"<<std::endl;
|
||||
replyRawReplyIfnotWiretapped(receivedData, foundLen);
|
||||
triggerEvent(DEVICE_INTERPRETING_REPLY_FAILED, result,
|
||||
foundId);
|
||||
|
Reference in New Issue
Block a user