cbcharacteristic學習筆記
/*!* @class cbcharacteristic
* @discussion
* 代表乙個服務的特徵
*/@inte***ce cbcharacteristic : nsobject
//表明這個屬於哪個service
@property(weak, readonly, nonatomic)
cbservice
*service;
//characteristic的uuid標識
@property(readonly, nonatomic)
cbuuid
*uuid;
// characteristic的屬性,是乙個結構體
typedef
ns_options(nsinteger, cbcharacteristicproperties) ;
@property(readonly, nonatomic)
cbcharacteristicproperties
properties;
// characteristic的值
@property(retain, readonly)
nsdata
*value;
// * *
@property(retain, readonly)
nsarray
*descriptors;
// 特徵是否正在廣播
@property(readonly) boolisbroadcasted;
// 特徵是否正在通知
@property(readonly) boolisnotifying;
@inte***ce cbmutablecharacteristic : cbcharacteristic
// 許可權
typedef
ns_options(nsinteger, cbattributepermissions)
@property(assign, readwrite, nonatomic)
cbattributepermissions
permissions;
//訂閱這個characteristic的central
@property(retain, readonly) nsarray *subscribedcentrals
@property(retain, readwrite, nonatomic)
cbuuid
*uuid;
@property(assign, readwrite, nonatomic)
cbcharacteristicproperties
properties;
@property(retain, readwrite)
nsdata
*value;
@property(retain, readwrite)
nsarray
*descriptors;
- (id)initwithtype:(cbuuid *)uuid properties:(cbcharacteristicproperties)properties value:(nsdata *)value permissions:(cbattributepermissions)permissions;
C Primer Chapter One學習筆記
筆記 1.流 從io裝置上讀入或寫出的字串行,用來說明字元隨時間順序生成或消耗。2.輸入輸出符可連用原因 operator 或operator 返回stream物件。3.要測試程式那個語句出錯,使用cout 4.新建乙個內建型別,如int i 0 最好先初始化,不然用到的時候沒初始化會產生奇怪的錯誤...
BroadcastReceiver學習筆記
需要注意 的是,不要在 onreceive 方法中新增過多的邏輯或者進行任何的耗時操作,因為在廣播接收 器中是不允許開啟執行緒的,當 onreceive 方法執行了較長時間而沒有結束時,程式就會報錯。有序broadcast,sendorderedbroadcast intent,null abort...
CDISC SDTM SE domain 學習筆記
整理翻譯自 sdtm ig 3.2 www.cdisc.org sdtm se subject elements 鞏固每個subject的epochs和elements的起止時間點.se對於有多個 時期的試驗有著重要的用處 如crossover試驗 se包含乙個subject從乙個element進入...