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: BLE_API X_NUCLEO_6180XA1 X_NUCLEO_IDB0XA1 mbed
Fork of BLE_HeartRate_IDB0XA1 by
updated.h
00001 // updated.h - check whether a characteristic has been updated 00002 // note: can only used within 'onWritten' callback 00003 // 00004 // Synopsis: 00005 // 00006 // See also: CHARACTERISTIC, GET, SET, ONWRITTEN 00007 // 00008 #ifndef _UPDATED_H_ 00009 #define _UPDATED_H_ 00010 00011 #include "ble/Gap.h" 00012 #include "bricks/blob.h" 00013 00014 inline int updated(Blob &o,GattCharacteristic &chr) // has char. been updated? 00015 { 00016 const GattWriteCallbackParams *p = o.pWritten; 00017 if (!p) 00018 return 0; // no update! 00019 else if(p->handle == chr.getValueHandle()) 00020 return 1; 00021 else 00022 return 0; 00023 } 00024 00025 #endif // _SET_H_
Generated on Sat Jul 16 2022 07:45:39 by
1.7.2
