iOS AILinkBleSDK - 蓝牙SDK
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // ELTLVModel.h
  3. // AILinkBleSDK
  4. //
  5. // Created by LarryZhang on 2022/9/6.
  6. // Copyright © 2022 IOT. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface ELTLVModel : NSObject
  11. @property(nonatomic, assign) UInt8 type; //T
  12. @property(nonatomic, assign, readonly) UInt8 length; //L
  13. @property(nonatomic, strong) NSData *value; //V
  14. - (instancetype)initWithType:(UInt8)type;
  15. - (instancetype)initWithType:(UInt8)type value:(NSData *)value;
  16. //type 1 Byte lengh 1 Byte
  17. + (NSArray<ELTLVModel *> *)objectArrayWithData:(NSData * _Nonnull)data;
  18. @property(nonatomic, strong, readonly) NSData *data;
  19. @end
  20. NS_ASSUME_NONNULL_END