react-native-gizwits-sdk-v5 1.5.6-thirdbluetooth → 1.5.7-thirdbluetooth
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/react-native-gizwits-sdk-v5.podspec +2 -2
- package/ios/GizwitsiOSSDK.framework/GizwitsiOSSDK +0 -0
- package/ios/GizwitsiOSSDK.framework/Headers/CocoaAsyncSocket.h +0 -18
- package/ios/GizwitsiOSSDK.framework/Headers/DDASLLogger.h +0 -41
- package/ios/GizwitsiOSSDK.framework/Headers/DDAbstractDatabaseLogger.h +0 -102
- package/ios/GizwitsiOSSDK.framework/Headers/DDContextFilterLogFormatter.h +0 -63
- package/ios/GizwitsiOSSDK.framework/Headers/DDDispatchQueueLogFormatter.h +0 -128
- package/ios/GizwitsiOSSDK.framework/Headers/DDFileLogger.h +0 -340
- package/ios/GizwitsiOSSDK.framework/Headers/DDLog+LOGV.h +0 -99
- package/ios/GizwitsiOSSDK.framework/Headers/DDLog.h +0 -632
- package/ios/GizwitsiOSSDK.framework/Headers/DDMultiFormatter.h +0 -30
- package/ios/GizwitsiOSSDK.framework/Headers/DDTTYLogger.h +0 -171
- package/ios/GizwitsiOSSDK.framework/Headers/ESPAES.h +0 -19
- package/ios/GizwitsiOSSDK.framework/Headers/ESPDataCode.h +0 -44
- package/ios/GizwitsiOSSDK.framework/Headers/ESPDatumCode.h +0 -38
- package/ios/GizwitsiOSSDK.framework/Headers/ESPGuideCode.h +0 -15
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTools.h +0 -22
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouch.h +0 -36
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchDelegate.h +0 -24
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchGenerator.h +0 -46
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchResult.h +0 -36
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchTask.h +0 -124
- package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchTaskParameter.h +0 -173
- package/ios/GizwitsiOSSDK.framework/Headers/ESPUDPSocketClient.h +0 -50
- package/ios/GizwitsiOSSDK.framework/Headers/ESPUDPSocketServer.h +0 -49
- package/ios/GizwitsiOSSDK.framework/Headers/ESP_ByteUtil.h +0 -128
- package/ios/GizwitsiOSSDK.framework/Headers/ESP_CRC8.h +0 -61
- package/ios/GizwitsiOSSDK.framework/Headers/ESP_NetUtil.h +0 -82
- package/ios/GizwitsiOSSDK.framework/Headers/ESP_WifiUtil.h +0 -33
- package/ios/GizwitsiOSSDK.framework/Headers/ForegroundReconnection.h +0 -23
- package/ios/GizwitsiOSSDK.framework/Headers/GCDTimer.h +0 -19
- package/ios/GizwitsiOSSDK.framework/Headers/GizwitsiOSSDK-Swift.h +0 -338
- package/ios/GizwitsiOSSDK.framework/Headers/GizwitsiOSSDK.h +0 -24
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTClient.h +0 -39
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTInMemoryPersistence.h +0 -16
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTSSLSecurityPolicyDecoder.h +0 -19
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTSSLSecurityPolicyEncoder.h +0 -18
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTSessionLegacy.h +0 -112
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTSessionSynchron.h +0 -194
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTStrict.h +0 -33
- package/ios/GizwitsiOSSDK.framework/Headers/MQTTUntil.h +0 -14
- package/ios/GizwitsiOSSDK.framework/Headers/ReconnectTimer.h +0 -21
- package/ios/GizwitsiOSSDK.framework/Headers/_GCDAsyncSocket.h +0 -1226
- package/ios/GizwitsiOSSDK.framework/Headers/_GCDAsyncUdpSocket.h +0 -1036
- package/ios/GizwitsiOSSDK.framework/Headers/_GizwitsParser.h +0 -61
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketDecoder.h +0 -39
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketEncoder.h +0 -38
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketTransport.h +0 -79
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCoreDataPersistence.h +0 -21
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTDecoder.h +0 -66
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTLog.h +0 -123
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTMessage.h +0 -233
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTPersistence.h +0 -124
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTProperties.h +0 -76
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSSLSecurityPolicy.h +0 -158
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSSLSecurityPolicyTransport.h +0 -30
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSession.h +0 -886
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSessionManager.h +0 -237
- package/ios/GizwitsiOSSDK.framework/Headers/_MQTTTransport.h +0 -114
- package/ios/GizwitsiOSSDK.framework/Headers/_SSZipArchive.h +0 -178
- package/ios/GizwitsiOSSDK.framework/Headers/_SSZipCommon.h +0 -71
- package/ios/GizwitsiOSSDK.framework/Headers/_ZipArchive.h +0 -26
- package/ios/GizwitsiOSSDK.framework/Headers/a_weighting.h +0 -88
- package/ios/GizwitsiOSSDK.framework/Headers/aubio.h +0 -231
- package/ios/GizwitsiOSSDK.framework/Headers/audio_unit.h +0 -61
- package/ios/GizwitsiOSSDK.framework/Headers/awhitening.h +0 -125
- package/ios/GizwitsiOSSDK.framework/Headers/beattracking.h +0 -121
- package/ios/GizwitsiOSSDK.framework/Headers/biquad.h +0 -75
- package/ios/GizwitsiOSSDK.framework/Headers/c_weighting.h +0 -88
- package/ios/GizwitsiOSSDK.framework/Headers/common.h +0 -104
- package/ios/GizwitsiOSSDK.framework/Headers/cvec.h +0 -247
- package/ios/GizwitsiOSSDK.framework/Headers/dct.h +0 -85
- package/ios/GizwitsiOSSDK.framework/Headers/fft.h +0 -144
- package/ios/GizwitsiOSSDK.framework/Headers/filter.h +0 -176
- package/ios/GizwitsiOSSDK.framework/Headers/filterbank.h +0 -90
- package/ios/GizwitsiOSSDK.framework/Headers/filterbank_mel.h +0 -72
- package/ios/GizwitsiOSSDK.framework/Headers/fmat.h +0 -172
- package/ios/GizwitsiOSSDK.framework/Headers/fvec.h +0 -178
- package/ios/GizwitsiOSSDK.framework/Headers/hist.h +0 -63
- package/ios/GizwitsiOSSDK.framework/Headers/ioutils.h +0 -60
- package/ios/GizwitsiOSSDK.framework/Headers/log.h +0 -99
- package/ios/GizwitsiOSSDK.framework/Headers/lvec.h +0 -118
- package/ios/GizwitsiOSSDK.framework/Headers/mathutils.h +0 -330
- package/ios/GizwitsiOSSDK.framework/Headers/mfcc.h +0 -79
- package/ios/GizwitsiOSSDK.framework/Headers/musicutils.h +0 -171
- package/ios/GizwitsiOSSDK.framework/Headers/notes.h +0 -113
- package/ios/GizwitsiOSSDK.framework/Headers/onset.h +0 -347
- package/ios/GizwitsiOSSDK.framework/Headers/parameter.h +0 -159
- package/ios/GizwitsiOSSDK.framework/Headers/peakpicker.h +0 -57
- package/ios/GizwitsiOSSDK.framework/Headers/phasevoc.h +0 -112
- package/ios/GizwitsiOSSDK.framework/Headers/pitch.h +0 -197
- package/ios/GizwitsiOSSDK.framework/Headers/pitchfcomb.h +0 -76
- package/ios/GizwitsiOSSDK.framework/Headers/pitchmcomb.h +0 -77
- package/ios/GizwitsiOSSDK.framework/Headers/pitchschmitt.h +0 -75
- package/ios/GizwitsiOSSDK.framework/Headers/pitchspecacf.h +0 -103
- package/ios/GizwitsiOSSDK.framework/Headers/pitchyin.h +0 -100
- package/ios/GizwitsiOSSDK.framework/Headers/pitchyinfast.h +0 -102
- package/ios/GizwitsiOSSDK.framework/Headers/pitchyinfft.h +0 -99
- package/ios/GizwitsiOSSDK.framework/Headers/resampler.h +0 -65
- package/ios/GizwitsiOSSDK.framework/Headers/sampler.h +0 -140
- package/ios/GizwitsiOSSDK.framework/Headers/scale.h +0 -80
- package/ios/GizwitsiOSSDK.framework/Headers/sink.h +0 -181
- package/ios/GizwitsiOSSDK.framework/Headers/sink_apple_audio.h +0 -163
- package/ios/GizwitsiOSSDK.framework/Headers/sink_sndfile.h +0 -162
- package/ios/GizwitsiOSSDK.framework/Headers/sink_wavwrite.h +0 -162
- package/ios/GizwitsiOSSDK.framework/Headers/source.h +0 -184
- package/ios/GizwitsiOSSDK.framework/Headers/source_apple_audio.h +0 -156
- package/ios/GizwitsiOSSDK.framework/Headers/source_avcodec.h +0 -155
- package/ios/GizwitsiOSSDK.framework/Headers/source_sndfile.h +0 -155
- package/ios/GizwitsiOSSDK.framework/Headers/source_wavread.h +0 -160
- package/ios/GizwitsiOSSDK.framework/Headers/specdesc.h +0 -204
- package/ios/GizwitsiOSSDK.framework/Headers/tempo.h +0 -255
- package/ios/GizwitsiOSSDK.framework/Headers/tss.h +0 -103
- package/ios/GizwitsiOSSDK.framework/Headers/types.h +0 -70
- package/ios/GizwitsiOSSDK.framework/Headers/vecutils.h +0 -116
- package/ios/GizwitsiOSSDK.framework/Headers/wavetable.h +0 -178
- package/ios/GizwitsiOSSDK.framework/Info.plist +0 -0
- package/ios/GizwitsiOSSDK.framework/LICENSE +0 -17
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.abi.json +0 -57489
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -1752
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftinterface +0 -1752
- package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
- package/ios/GizwitsiOSSDK.framework/Modules/module.modulemap +0 -11
- package/ios/GizwitsiOSSDK.framework/PrivacyInfo.xcprivacy +0 -23
- package/ios/GizwitsiOSSDK.framework/README.md +0 -31
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// ESPTaskParameter.h
|
|
3
|
-
// EspTouchDemo
|
|
4
|
-
//
|
|
5
|
-
// Created by fby on 5/20/15.
|
|
6
|
-
// Copyright (c) 2015 fby. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
@interface ESPTaskParameter : NSObject
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* get interval millisecond for guide code(the time between each guide code sending)
|
|
15
|
-
* @return interval millisecond for guide code(the time between each guide code sending)
|
|
16
|
-
*/
|
|
17
|
-
- (long) getIntervalGuideCodeMillisecond;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* get interval millisecond for data code(the time between each data code sending)
|
|
21
|
-
* @return interval millisecond for data code(the time between each data code sending)
|
|
22
|
-
*/
|
|
23
|
-
- (long) getIntervalDataCodeMillisecond;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* get timeout millisecond for guide code(the time how much the guide code sending)
|
|
27
|
-
* @return timeout millisecond for guide code(the time how much the guide code sending)
|
|
28
|
-
*/
|
|
29
|
-
- (long) getTimeoutGuideCodeMillisecond;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* get timeout millisecond for data code(the time how much the data code sending)
|
|
33
|
-
* @return timeout millisecond for data code(the time how much the data code sending)
|
|
34
|
-
*/
|
|
35
|
-
- (long) getTimeoutDataCodeMillisecond;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* get timeout millisecond for total code(guide code and data code altogether)
|
|
39
|
-
* @return timeout millisecond for total code(guide code and data code altogether)
|
|
40
|
-
*/
|
|
41
|
-
- (long) getTimeoutTotalCodeMillisecond;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* get total repeat time for executing esptouch task
|
|
45
|
-
* @return total repeat time for executing esptouch task
|
|
46
|
-
*/
|
|
47
|
-
- (int) getTotalRepeatTime;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* the length of the Esptouch result 1st byte is the total length of ssid and
|
|
51
|
-
* password, the other 6 bytes are the device's bssid
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* get esptouchResult length of one
|
|
56
|
-
* @return length of one
|
|
57
|
-
*/
|
|
58
|
-
- (int) getEsptouchResultOneLen;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* get esptouchResult length of mac
|
|
62
|
-
* @return length of mac
|
|
63
|
-
*/
|
|
64
|
-
- (int) getEsptouchResultMacLen;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* get esptouchResult length of ip
|
|
68
|
-
* @return length of ip
|
|
69
|
-
*/
|
|
70
|
-
- (int) getEsptouchResultIpLen;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* get esptouchResult total length
|
|
74
|
-
* @return total length
|
|
75
|
-
*/
|
|
76
|
-
- (int) getEsptouchResultTotalLen;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* get port for listening(used by server)
|
|
80
|
-
* @return port for listening(used by server)
|
|
81
|
-
*/
|
|
82
|
-
- (int) getPortListening;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* get target hostname
|
|
86
|
-
* @return target hostame(used by client)
|
|
87
|
-
*/
|
|
88
|
-
- (NSString *) getTargetHostname;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* get target port
|
|
92
|
-
* @return target port(used by client)
|
|
93
|
-
*/
|
|
94
|
-
- (int) getTargetPort;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* get millisecond for waiting udp receiving(receiving without sending)
|
|
98
|
-
* @return millisecond for waiting udp receiving(receiving without sending)
|
|
99
|
-
*/
|
|
100
|
-
- (int) getWaitUdpReceivingMillisecond;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* get millisecond for waiting udp sending(sending including receiving)
|
|
104
|
-
* @return millisecond for waiting udep sending(sending including receiving)
|
|
105
|
-
*/
|
|
106
|
-
- (int) getWaitUdpSendingMillisecond;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* get millisecond for waiting udp sending and receiving
|
|
110
|
-
* @return millisecond for waiting udp sending and receiving
|
|
111
|
-
*/
|
|
112
|
-
- (int) getWaitUdpTotalMillisecond;
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* get the threshold for how many correct broadcast should be received
|
|
116
|
-
* @return the threshold for how many correct broadcast should be received
|
|
117
|
-
*/
|
|
118
|
-
- (int) getThresholdSucBroadcastCount;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* set the millisecond for waiting udp sending and receiving
|
|
122
|
-
* @param waitUdpTotalMillisecond the millisecond for waiting udp sending and receiving
|
|
123
|
-
*/
|
|
124
|
-
- (void) setWaitUdpTotalMillisecond: (int) waitUdpTotalMillisecond;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* get the count of expect task results
|
|
129
|
-
* @return the count of expect task results
|
|
130
|
-
*/
|
|
131
|
-
- (int) getExpectTaskResultCount;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* set the count of expect task results
|
|
135
|
-
* @param expectTaskResultCount the count of expect task results
|
|
136
|
-
*/
|
|
137
|
-
- (void) setExpectTaskResultCount: (int) expectTaskResultCount;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* get whether the router support IPv4
|
|
141
|
-
* @return whether the router support IPv4
|
|
142
|
-
*/
|
|
143
|
-
- (BOOL) isIPv4Supported;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* set whether the router support IPv4
|
|
147
|
-
* @param isIPv4Supported whether the router support IPv4
|
|
148
|
-
*/
|
|
149
|
-
- (void) setIsIPv4Supported:(BOOL) isIPv4Supported;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* get whether the router support IPv6
|
|
153
|
-
* @return whether the router support IPv6
|
|
154
|
-
*/
|
|
155
|
-
- (BOOL) isIPv6Supported;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* set whether the router support IPv6
|
|
159
|
-
* @param isIPv4Supported whether the router support IPv6
|
|
160
|
-
*/
|
|
161
|
-
- (void) setIsIPv6Supported:(BOOL) isIPv6Supported;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* set listening port for IPv6
|
|
165
|
-
*/
|
|
166
|
-
- (void) setListeningPort6:(int) listeningPort6;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Set broadcast or multicast
|
|
170
|
-
*/
|
|
171
|
-
- (void) setBroadcast:(BOOL) broadcast;
|
|
172
|
-
|
|
173
|
-
@end
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// ESPUDPSocketClient.h
|
|
3
|
-
// EspTouchDemo
|
|
4
|
-
//
|
|
5
|
-
// Created by fby on 4/13/15.
|
|
6
|
-
// Copyright (c) 2015 fby. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
@interface ESPUDPSocketClient : NSObject
|
|
12
|
-
|
|
13
|
-
- (void) close;
|
|
14
|
-
|
|
15
|
-
- (void) interrupt;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* send the data by UDP
|
|
19
|
-
*
|
|
20
|
-
* @param bytes
|
|
21
|
-
* the array of datas to be sent
|
|
22
|
-
* @param targetHost
|
|
23
|
-
* the host name of target, e.g. 192.168.1.101
|
|
24
|
-
* @param targetPort
|
|
25
|
-
* the port of target
|
|
26
|
-
* @param interval
|
|
27
|
-
* the milliseconds to between each UDP sent
|
|
28
|
-
*/
|
|
29
|
-
- (void) sendDataWithBytesArray2: (NSArray *) bytesArray2 ToTargetHostName: (NSString *)targetHostName WithPort: (int) port
|
|
30
|
-
andInterval: (long) interval;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* send the data by UDP
|
|
34
|
-
*
|
|
35
|
-
* @param data
|
|
36
|
-
* the data to be sent
|
|
37
|
-
* @param offset
|
|
38
|
-
* the offset which data to be sent
|
|
39
|
-
* @param count
|
|
40
|
-
* the count of the data
|
|
41
|
-
* @param targetHost
|
|
42
|
-
* the host name of target, e.g. 192.168.1.101
|
|
43
|
-
* @param targetPort
|
|
44
|
-
* the port of target
|
|
45
|
-
* @param interval
|
|
46
|
-
* the milliseconds to between each UDP sent
|
|
47
|
-
*/
|
|
48
|
-
- (void) sendDataWithBytesArray2: (NSArray *) bytesArray2 Offset: (NSUInteger) offset Count: (NSUInteger) count ToTargetHostName: (NSString *)targetHostName WithPort: (int) port
|
|
49
|
-
andInterval: (long) interval;
|
|
50
|
-
@end
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// ESPUDPSocketServer.h
|
|
3
|
-
// EspTouchDemo
|
|
4
|
-
//
|
|
5
|
-
// Created by fby on 4/13/15.
|
|
6
|
-
// Copyright (c) 2015 fby. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
#define BUFFER_SIZE 64
|
|
12
|
-
|
|
13
|
-
@interface ESPUDPSocketServer : NSObject
|
|
14
|
-
{
|
|
15
|
-
@private
|
|
16
|
-
Byte _buffer[BUFFER_SIZE];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@property (nonatomic, assign) int port;
|
|
20
|
-
|
|
21
|
-
- (void) close;
|
|
22
|
-
|
|
23
|
-
- (void) interrupt;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Set the socket timeout in milliseconds
|
|
27
|
-
*
|
|
28
|
-
* @param timeout
|
|
29
|
-
* the timeout in milliseconds or 0 for no timeout.
|
|
30
|
-
* @return true whether the timeout is set suc
|
|
31
|
-
*/
|
|
32
|
-
- (void) setSocketTimeout: (int) timeout;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Receive one byte from the port
|
|
36
|
-
*
|
|
37
|
-
* @return one byte receive from the port or UINT8_MAX(it impossible receive it from the socket)
|
|
38
|
-
*/
|
|
39
|
-
- (Byte) receiveOneByte4;
|
|
40
|
-
|
|
41
|
-
- (NSData *) receiveSpecLenBytes4: (int)len;
|
|
42
|
-
|
|
43
|
-
- (Byte) receiveOneByte6;
|
|
44
|
-
|
|
45
|
-
- (NSData *) receiveSpecLenBytes6:(int)len;
|
|
46
|
-
|
|
47
|
-
- (id) initWithPort: (int) port AndSocketTimeout: (int) socketTimeout;
|
|
48
|
-
|
|
49
|
-
@end
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// ESP_ByteUtil.h
|
|
3
|
-
// EspTouchDemo
|
|
4
|
-
//
|
|
5
|
-
// Created by fby on 4/7/15.
|
|
6
|
-
// Copyright (c) 2015 fby. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
@interface ESP_ByteUtil : NSObject
|
|
12
|
-
|
|
13
|
-
#define ESPTOUCH_NSStringEncoding NSUTF8StringEncoding
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Convert uint8 into char( we treat char as uint8)
|
|
17
|
-
*
|
|
18
|
-
* @param uint8
|
|
19
|
-
* the unit8 to be converted
|
|
20
|
-
* @return the byte of the unint8
|
|
21
|
-
*/
|
|
22
|
-
+ (Byte) convertUint8toByte:(char) uint8;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Convert char into uint8( we treat char as uint8 )
|
|
26
|
-
*
|
|
27
|
-
* @param b
|
|
28
|
-
* the byte to be converted
|
|
29
|
-
* @return the UInt8(uint8)
|
|
30
|
-
*/
|
|
31
|
-
+ (UInt8) convertByte2Uint8:(Byte) b;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Convert byte to Hex String
|
|
35
|
-
*
|
|
36
|
-
* @param b
|
|
37
|
-
* the byte to be converted
|
|
38
|
-
* @return the Hex String
|
|
39
|
-
*/
|
|
40
|
-
+ (NSString *) convertByte2HexString:(Byte) b;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Split uint8 to 2 bytes of high byte and low byte. e.g. 20 = 0x14 should
|
|
44
|
-
* be split to [0x01,0x04] 0x01 is high byte and 0x04 is low byte
|
|
45
|
-
*
|
|
46
|
-
* @param uint8
|
|
47
|
-
* the char(uint8)
|
|
48
|
-
* @return the high and low bytes be split, byte[0] is high and byte[1] is
|
|
49
|
-
* low
|
|
50
|
-
*/
|
|
51
|
-
+ (NSData *) splitUint8To2Bytes: (UInt8) uint8;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Combine 2 bytes (high byte and low byte) to one whole byte
|
|
55
|
-
*
|
|
56
|
-
* @param high
|
|
57
|
-
* the high byte
|
|
58
|
-
* @param low
|
|
59
|
-
* the low byte
|
|
60
|
-
* @return the whole byte
|
|
61
|
-
*/
|
|
62
|
-
+ (Byte) combine2bytesToOneWithHigh: (Byte) high andLow: (Byte) low;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Combine 2 bytes (high byte and low byte) to one UInt16
|
|
66
|
-
*
|
|
67
|
-
* @param high
|
|
68
|
-
* the high byte
|
|
69
|
-
* @param low
|
|
70
|
-
* the low byte
|
|
71
|
-
* @return the UInt8
|
|
72
|
-
*/
|
|
73
|
-
+ (UInt16) combine2bytesToU16WithHigh: (Byte) high andLow: (Byte) low;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Generate the random byte to be sent
|
|
77
|
-
*
|
|
78
|
-
* @return the random byte
|
|
79
|
-
*/
|
|
80
|
-
+ (Byte) randomByte;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Generate the random byte to be sent
|
|
84
|
-
*
|
|
85
|
-
* @param len
|
|
86
|
-
* the len presented by u8
|
|
87
|
-
* @return the byte[] to be sent
|
|
88
|
-
*/
|
|
89
|
-
+ (NSData *) randomBytes: (UInt8) len;
|
|
90
|
-
|
|
91
|
-
+ (NSData *) genSpecBytesWithU16: (UInt16) len;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Generate the specific byte to be sent
|
|
95
|
-
* @param len
|
|
96
|
-
* the len presented by byte
|
|
97
|
-
* @return the byte[]
|
|
98
|
-
*/
|
|
99
|
-
+ (NSData *) genSpecBytesWithU8:(Byte) len;
|
|
100
|
-
|
|
101
|
-
+ (NSString *) parseBssid:(Byte[]) bssidBytes Offset: (int) offset Count: (int) count;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* parse "24,-2,52,-102,-93,-60" to "18,fe,34,9a,a3,c4" parse the bssid from
|
|
105
|
-
* hex to String
|
|
106
|
-
*
|
|
107
|
-
* @param bssidBytes
|
|
108
|
-
* the hex bytes bssid, e.g. {24,-2,52,-102,-93,-60}
|
|
109
|
-
* @param len
|
|
110
|
-
* the len of bssidBytes
|
|
111
|
-
* @return the String of bssid, e.g. 18fe349aa3c4
|
|
112
|
-
*/
|
|
113
|
-
+ (NSString *) parseBssid:(Byte[]) bssidBytes Len: (int) len;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* @param string the string to be used
|
|
117
|
-
* @return the Byte[] of string according to ESPTOUCH_NSStringEncoding
|
|
118
|
-
*/
|
|
119
|
-
+ (NSData *) getBytesByNSString: (NSString *)string;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* get hex string transformed by data
|
|
123
|
-
* @param data the data to be transformed
|
|
124
|
-
* @return the hex String transformed by data
|
|
125
|
-
*/
|
|
126
|
-
+ (NSString *) getHexStringByData: (NSData *)data;
|
|
127
|
-
|
|
128
|
-
@end
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// ESP_CRC8.h
|
|
3
|
-
// EspTouchDemo
|
|
4
|
-
//
|
|
5
|
-
// Created by fby on 3/23/15.
|
|
6
|
-
// Copyright (c) 2015 fby. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
#define CRC_POLYNOM 0x8c
|
|
12
|
-
|
|
13
|
-
#define CRC_INITIAL 0x00
|
|
14
|
-
|
|
15
|
-
// the interface is copied from the interface Checksum from Java
|
|
16
|
-
@interface ESP_CRC8 : NSObject
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Returns the current calculated checksum value.
|
|
20
|
-
*
|
|
21
|
-
* @return the checksum.
|
|
22
|
-
*/
|
|
23
|
-
- (long)getValue;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Resets the checksum value applied before beginning calculations on a new
|
|
27
|
-
* stream of data.
|
|
28
|
-
*/
|
|
29
|
-
- (void)reset;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Updates the checksum with the given bytes.
|
|
33
|
-
*
|
|
34
|
-
* @param buf
|
|
35
|
-
* the byte array from which to read the bytes.
|
|
36
|
-
* @param off
|
|
37
|
-
* the initial position in {@code buf} to read the bytes from.
|
|
38
|
-
* @param nbytes
|
|
39
|
-
* the number of bytes to read from {@code buf}.
|
|
40
|
-
*/
|
|
41
|
-
- (void)updateWithBuf:(Byte[])buf Off:(int)off Nbytes:(int)nbytes;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Updates the checksum with the given bytes.
|
|
45
|
-
*
|
|
46
|
-
* @param buf
|
|
47
|
-
* the byte array from which to read the bytes.
|
|
48
|
-
* @param nbytes
|
|
49
|
-
* the number of bytes to read from {@code buf}.
|
|
50
|
-
*/
|
|
51
|
-
- (void)updateWithBuf:(Byte [])buf Nbytes:(int)nbytes;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Updates the checksum value with the given byte.
|
|
55
|
-
*
|
|
56
|
-
* @param val
|
|
57
|
-
* the byte to update the checksum with.
|
|
58
|
-
*/
|
|
59
|
-
- (void)updateWithValue:(int)value;
|
|
60
|
-
|
|
61
|
-
@end
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// ESPNetUtil.h
|
|
3
|
-
// EspTouchDemo
|
|
4
|
-
//
|
|
5
|
-
// Created by fby on 5/15/15.
|
|
6
|
-
// Copyright (c) 2015 fby. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
@interface ESP_NetUtil : NSObject
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* get local ip v4 or nil
|
|
15
|
-
*
|
|
16
|
-
* @return local ip v4 or nil
|
|
17
|
-
*/
|
|
18
|
-
+ (NSString *) getLocalIPv4;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* get local ip v6 or nil
|
|
22
|
-
*
|
|
23
|
-
* @return local ip v6 or nil
|
|
24
|
-
*/
|
|
25
|
-
+ (NSString *) getLocalIPv6;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* whether the ipAddr is v4
|
|
29
|
-
*
|
|
30
|
-
* @return whether the ipAddr is v4
|
|
31
|
-
*/
|
|
32
|
-
+ (BOOL) isIPv4Addr:(NSString *)ipAddr;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* whether the ipAddr v4 is private
|
|
36
|
-
*
|
|
37
|
-
* @return whether the ipAddr v4 is private
|
|
38
|
-
*/
|
|
39
|
-
+ (BOOL) isIPv4PrivateAddr:(NSString *)ipAddr;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* get the local ip address by local inetAddress ip4
|
|
43
|
-
*
|
|
44
|
-
* @param localInetAddr4 local inetAddress ip4
|
|
45
|
-
*/
|
|
46
|
-
+ (NSData *) getLocalInetAddress4ByAddr:(NSString *) localInetAddr4;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* get the invented local ip address by local port
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
+ (NSData *) getLocalInetAddress6ByPort:(int) localPort;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* parse InetAddress
|
|
56
|
-
*/
|
|
57
|
-
+ (NSData *) parseInetAddrByData: (NSData *) inetAddrData andOffset: (int) offset andCount: (int) count;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* descrpion inetAddrData for print pretty IPv4
|
|
61
|
-
*/
|
|
62
|
-
+ (NSString *) descriptionInetAddr4ByData: (NSData *) inetAddrData;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* descrpion inetAddrData for print pretty IPv6
|
|
66
|
-
*/
|
|
67
|
-
+ (NSString *) descriptionInetAddr6ByData: (NSData *) inetAddrData;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* parse bssid
|
|
71
|
-
*
|
|
72
|
-
* @param bssid the bssid
|
|
73
|
-
* @return byte converted from bssid
|
|
74
|
-
*/
|
|
75
|
-
+ (NSData *) parseBssid2bytes: (NSString *) bssid;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* send a dummy GET to "https://8.8.8.8" just to get Network Permission after ios10.0(including)
|
|
79
|
-
*/
|
|
80
|
-
+ (void) tryOpenNetworkPermission;
|
|
81
|
-
|
|
82
|
-
@end
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// ESP_WifiUtil.h
|
|
3
|
-
// EspTouchDemo
|
|
4
|
-
//
|
|
5
|
-
// Created by fby on 6/15/16.
|
|
6
|
-
// Copyright © 2016 fby. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
@interface ESP_WifiUtil : NSObject
|
|
12
|
-
|
|
13
|
-
// refer to http://stackoverflow.com/questions/7072989/iphone-ipad-osx-how-to-get-my-ip-address-programmatically
|
|
14
|
-
+ (NSString *)getIPAddress:(BOOL)preferIPv4;
|
|
15
|
-
|
|
16
|
-
// refer to http://stackoverflow.com/questions/7072989/iphone-ipad-osx-how-to-get-my-ip-address-programmatically
|
|
17
|
-
+ (NSDictionary *)getIPAddresses;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* get local ip address by IPv4
|
|
21
|
-
*
|
|
22
|
-
* @return local ip address by IPv4(or nil when en0/ipv4 unaccessible)
|
|
23
|
-
*/
|
|
24
|
-
+ (NSString *)getIPAddress4;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* get local ip address by IPv6
|
|
28
|
-
*
|
|
29
|
-
* @return local ip address by IPv6(or nil when en0/ipv6 unaccessible)
|
|
30
|
-
*/
|
|
31
|
-
+ (NSString *)getIpAddress6;
|
|
32
|
-
|
|
33
|
-
@end
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// ForegroundReconnection.h
|
|
3
|
-
// MQTTClient
|
|
4
|
-
//
|
|
5
|
-
// Created by Josip Cavar on 22/08/2017.
|
|
6
|
-
// Copyright © 2017 Christoph Krey. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
#if TARGET_OS_IPHONE == 1
|
|
12
|
-
|
|
13
|
-
@class _MQTTSessionManager;
|
|
14
|
-
|
|
15
|
-
@interface ForegroundReconnection : NSObject
|
|
16
|
-
|
|
17
|
-
@property (weak, nonatomic) _MQTTSessionManager *sessionManager;
|
|
18
|
-
|
|
19
|
-
- (instancetype)initWithMQTTSessionManager:(_MQTTSessionManager *)manager;
|
|
20
|
-
|
|
21
|
-
@end
|
|
22
|
-
|
|
23
|
-
#endif
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Timer.h
|
|
3
|
-
// MQTTClient
|
|
4
|
-
//
|
|
5
|
-
// Created by Josip Cavar on 06/11/2017.
|
|
6
|
-
// Copyright © 2017 Christoph Krey. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
@interface GCDTimer: NSObject
|
|
12
|
-
|
|
13
|
-
+ (GCDTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)interval
|
|
14
|
-
repeats:(BOOL)repeats
|
|
15
|
-
queue:(dispatch_queue_t)queue
|
|
16
|
-
block:(void (^)(void))block;
|
|
17
|
-
- (void)invalidate;
|
|
18
|
-
|
|
19
|
-
@end
|