this is using the mbed os version 5-13-1
Diff: source/ATCmdManager.cpp
- Revision:
- 91:d6b6319ad681
- Parent:
- 90:ed0267eca7b5
- Child:
- 92:ec9550034276
--- a/source/ATCmdManager.cpp Sun Apr 07 10:52:37 2019 +0000
+++ b/source/ATCmdManager.cpp Sun Apr 07 17:31:56 2019 +0000
@@ -863,7 +863,8 @@
}
void ATCmdManager::outputEDMdata(const uint8_t *buf, int pLen,
- edm_msg_id_t identifier, edm_msg_type_t type)
+ edm_msg_id_t identifier, edm_msg_type_t type,
+ channel_id_t channel_id)
{
int epLen = pLen + 2; // edm payload length = data length + 2
_smutex.lock();
@@ -875,6 +876,8 @@
// send EDM Identifier + Type
_parser.putc(identifier>>8);
_parser.putc(identifier%256 | type);
+ // send EDM Identifier + Type
+ _parser.putc(channel_id);
// send the data
_parser.write((const char *)buf, pLen);
// send EDM Message stop byte
@@ -895,7 +898,8 @@
printBufferInHex((uint8_t *)resp, resp_data->dataLen);
}
//_parser.write(resp, resp_data->dataLen);
- outputEDMdata((const uint8_t *)resp, resp_data->dataLen, DATA_MSG_ID, EVENT_MSG_TYPE);
+ outputEDMdata((const uint8_t *)resp, resp_data->dataLen, DATA_MSG_ID,
+ EVENT_MSG_TYPE, WIFI_CHANNEL);
_smutex.unlock();
_wiFi2ATDatamPool->free(resp_data);