created separate function for hex to char

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of SS_SensePOC2P0_11Dec2017_USERPID by rashmi v

Revision:
68:41da0a3ba038
Parent:
66:d7fc45e328d0
Child:
69:128e3b467820
--- a/bp.cpp	Mon Nov 20 12:23:52 2017 +0000
+++ b/bp.cpp	Tue Nov 21 12:47:03 2017 +0000
@@ -107,7 +107,12 @@
     
     // Loading values of Length ,  PID, DID, sampling frequency, number of samples, calculated data.
     BLEMsg_info_bp.device_id = eprom_read_8(12);                   // Device ID fixed  // changed on 11/8/17 nikita
-    BLEMsg_info_bp.patient_id = (uint32_t)pid;       // Patient ID
+    //BLEMsg_info_bp.patient_id = (uint32_t)pid;       // Patient ID
+     bpr.printf("user pid in bp  = %s\n",user_pid);
+     get_userpid(BLEMsg_info_bp.patient_id,user_pid);
+     bpr.printf("BP pid = %s\n",BLEMsg_info_bp.patient_id);
+    ascii_to_hex((const char *)BLEMsg_info_bp.patient_id, strlen(BLEMsg_info_bp.patient_id));
+    
     BLEMsg_info_bp.sampling_freq = 500;              // sampling frrquency
     BLEMsg_info_bp.length = 10774;                   //Total length of data in bytes  22 B+10752 B