created separate function for hex to char
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of SS_SensePOC2P0_11Dec2017_USERPID by
Diff: bt.cpp
- Revision:
- 71:8f1851c556d6
- Parent:
- 69:128e3b467820
- Child:
- 72:1f990fa8c516
--- a/bt.cpp Thu Nov 30 10:25:19 2017 +0000 +++ b/bt.cpp Fri Dec 01 11:18:34 2017 +0000 @@ -341,8 +341,12 @@ blue.printf("%08x",myBleMsg->length_file); //changed the sequence blue.printf("%08x",myBleMsg->bt_msg.length); blue.printf("%02x",myBleMsg->bt_msg.device_id); - blue.printf("%08x",myBleMsg->bt_msg.patient_id); //changed to 10 - //mc.printf("PID ib bt: %10x",myBleMsg->bt_msg.patient_id); + //blue.printf("%08x",myBleMsg->bt_msg.patient_id); //changed to 10 + for (uint8_t i = 0; i < sizeof(myBleMsg->bt_msg.patient_id); i++) + { + blue.printf("%02x",myBleMsg->bt_msg.patient_id[i]); + mc.printf("%02x",myBleMsg->bt_msg.patient_id[i]); + } blue.printf("%02x",myBleMsg->bt_msg.date_time.date); blue.printf("%02x",myBleMsg->bt_msg.date_time.month); blue.printf("%02x",myBleMsg->bt_msg.date_time.year);