sdasd
Dependencies: BLE_API mbed nRF51822
Fork of MEDRON_SNIFFER_ABCD-KIMLIKLI-OLANLARI-TARAMA-YAPAR_30062016 by
Diff: main.cpp
- Revision:
- 14:59ba4a2a17c7
- Parent:
- 13:5f87b9cdeb6f
- Child:
- 15:a88e0135e67e
--- a/main.cpp Wed Mar 23 14:45:07 2016 +0000 +++ b/main.cpp Thu Jun 30 07:09:50 2016 +0000 @@ -47,7 +47,6 @@ } PACKED; static const uint16_t MED_KIMLIK = 0xABCD; - /* Search for the manufacturer specific data with matching application-ID */ AdvertisingData_t *pAdvData; size_t index = 0; @@ -57,8 +56,7 @@ ApplicationData_t *pAppData = (ApplicationData_t *)pAdvData->data; if (pAppData->applicationSpecificId == MED_KIMLIK ) { /* dump information on the console. */ - - pc.printf("&name=aysegul&pass=123&sender=sniffer1&temparaturedata=");// Birinci Sniffer + pc.printf("name=aysegul&pass=123&sender=sniffer1&temparaturedata=");// Birinci Sniffer pc.printf("%02x%02x",0xFA,0xCC);//BASLANGIC BİTLERİ //MAC adresi, RSSI pc.printf("%02x%02x%02x%02x%02x%02x%x", @@ -67,10 +65,10 @@ /* RSSI DEĞERİNİ DECİMALE ÇEVİRDİKTEN SONRA -1 İLE ÇARPILMALIDIR. */ for (unsigned index = 0; index < params->advertisingDataLen; index++) { - pc.printf("%02x", params->advertisingData[index]); + pc.printf("%02x", params->advertisingData[index]); } pc.printf("%02x\r",0xFF);// BITIS - + break; } }