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

ELAILinkBleManager+WIFI.h 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // ELAILinkBleManager+WIFI.h
  3. // AILinkBleSDK
  4. //
  5. // Created by LarryZhang on 2023/3/31.
  6. //
  7. #import "ELAILinkBleManager.h"
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface ELAILinkBleManager (WIFI)
  10. //============ wifi 分包数据 ==============
  11. @property(nonatomic, strong) ELBleWifiDetailModel *_Nullable wifiDetailModel;
  12. @property(nonatomic, strong) NSMutableData *_Nullable urlBuffData;
  13. @property(nonatomic, strong) NSMutableData *_Nullable pathBuffData;
  14. //============ Bluetooth WIFI calling method(蓝牙WIFI 设置命令) ==============
  15. /**
  16. WIFI initiate connection and disconnect(WIFI 发起连接、断开连接)
  17. @param connect YES: initiate connection NO: disconnect(YES:发起连接 NO:断开连接)
  18. */
  19. - (void)bleWifiSetupWifiConnect:(BOOL)connect;
  20. /**
  21. Set WIFI access URL(设置WIFI访问URL)
  22. @param url url(Not more than 56chars(不超过56chars))
  23. */
  24. - (void)bleWifiSetURL:(NSString *)url;
  25. /**
  26. Set Wifi access port number(设置Wifi访问端口号)
  27. @param port 端口号
  28. */
  29. - (void)bleWifiSetPort:(int)port;
  30. /**
  31. Set WIFI access path(设置WIFI访问path)
  32. @param path path(Not more than 56chars(不超过56chars))
  33. */
  34. - (void)bleWifiSetPath:(NSString *)path;
  35. //Get WIFI access URL(设置WIFI访问URL)
  36. - (void)bleWifiGetURL;
  37. //Get Wifi access port number(设置Wifi访问端口号)
  38. - (void)bleWifiGetPort;
  39. //Get WIFI access path(设置WIFI访问path)
  40. - (void)bleWifiGetPath;
  41. /**
  42. Set DTIM interval(设置DTIM间隔)
  43. @param interval 间隔
  44. */
  45. - (void)bleWifiSetDTIMInterval:(int)interval;
  46. /**
  47. Set WIFI password(设置WIFI密码)
  48. @param pwd WIFI password (8 ~ 56 chars)(WIFI密码(8~56 个chars))
  49. */
  50. - (void)bleWifiSetWifiPwd:(NSString *)pwd;
  51. /**
  52. Set up connected WIFI(设置连接的WIFI)
  53. @param macData wifi MAC (little endian)(wifi的MAC(小端序))
  54. */
  55. - (void)bleWifiSetConnectWifiMac:(NSData *)macData;
  56. //解析
  57. - (void)parseA6WifiPacket:(NSData *)packet;
  58. @end
  59. NS_ASSUME_NONNULL_END