選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

AiFreshHeader.h 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. //
  2. // AiFreshHeader.h
  3. // iFreshSDK
  4. //
  5. // Created by iot_user on 2019/4/4.
  6. // Copyright © 2019年 IOT. All rights reserved.
  7. //
  8. #ifndef AiFreshHeader_h
  9. #define AiFreshHeader_h
  10. typedef NS_ENUM(NSUInteger, AiFrushDeviceType) {
  11. AiFrushDeviceTypeUnknown , //When not connected(未连接时)
  12. AiFrushDeviceTypeAC04 , //AC04 scale does not support KG(AC04的秤不支持KG)
  13. AiFrushDeviceTypeAC05 , //Some AC05 scales support KG(部分AC05的秤支持KG)
  14. };
  15. //咖啡定时功能
  16. typedef NS_ENUM(NSUInteger, BleCoffeeTimingWorkType) {
  17. BleCoffeeTimingWorkTypeStart = 1 , //Starting time(正计时开始)
  18. BleCoffeeTimingWorkTypePositivePause = 2 , //Positive timing pause(正计时暂停)
  19. BleCoffeeTimingWorkTypeReset = 3 , //reset(重置)
  20. BleCoffeeTimingWorkTypeCountdownPause = 4 , //Countdown pause(倒计时暂停)
  21. };
  22. typedef enum : NSUInteger {
  23. UNIT_g = 0, //g
  24. UNIT_ml = 1, //
  25. UNIT_lb = 2, //lb:oz
  26. UNIT_oz = 3, //oz
  27. UNIT_kg = 4, //kg
  28. UNIT_jin = 5, //斤
  29. UNIT_LB = 10,//lb
  30. } GN_UnitEnum;
  31. typedef enum : NSUInteger {
  32. bleOpen = 0,
  33. bleOff,
  34. bleConnect,
  35. bleBreak
  36. } GN_BleStatus;
  37. /**
  38. 000 = 0 位小数(不带小数点); 001 = 1 位小数
  39. 010 = 2 位小数; 011 = 3 位小数; 100 = 4 位小数 101 = 5 位小数; 110 = 6 位小数; 111 = 7 位小数
  40. */
  41. typedef NS_ENUM(NSUInteger, PointType) {
  42. PointType_0 = 0,
  43. PointType_1 = 1,
  44. PointType_2 = 2,
  45. PointType_3 = 3,
  46. PointType_4 = 4,
  47. PointType_5 = 5,
  48. PointType_6 = 6,
  49. PointType_7 = 7,
  50. };
  51. //SDK 内部沙盒
  52. #define AiFreshlastUnit @"AiFreshlastUnit"
  53. #define AiBrushFLAG @"AiBrushFLAG"
  54. #define AiBrushPointCount @"PointCount"
  55. #define AiBrushScalesType @"ScalesTypeAC"
  56. #define ScalesTypeAC04 @"ac04"
  57. #define ScalesTypeAC05 @"ac05"
  58. #endif /* AiFreshHeader_h */