Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: libmDot-Custom MTS-Serial
Fork of mDot_AT_firmware_CUSTOM by
To change channel plans replace AS923 with AU915, EU868, KR920 or US915 on line 15
#define CHANNEL_PLAN CP_AS923
Diff: CommandTerminal/CommandTerminal.cpp
- Revision:
- 2:e5eebd74d36d
- Parent:
- 1:e52ae6584f1c
- Child:
- 4:666017851052
diff -r e52ae6584f1c -r e5eebd74d36d CommandTerminal/CommandTerminal.cpp
--- a/CommandTerminal/CommandTerminal.cpp Thu Jun 25 10:23:41 2015 -0500
+++ b/CommandTerminal/CommandTerminal.cpp Fri Jul 10 09:43:56 2015 -0500
@@ -558,14 +558,10 @@
}
std::string CommandTerminal::formatPacketData(const std::vector<uint8_t>& data, const uint8_t& format) {
- if (format == mDot::HEXADECIMAL) {
+ if (format == mDot::HEXADECIMAL)
return mts::Text::bin2hexString(data);
- } else {
- std::string data_str;
- for (int i = 0; i < data.size(); i++)
- data_str.append((const char*)data[i], 1);
- return data_str;
- }
+ else
+ return std::string(data.begin(), data.end());
}
void CommandTerminal::sleep(bool standby) {
