You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## MQTT Features (inherit from native MQTT framework)
8
+
8
9
* Use [MQTT Framework](https://github.com/ckrey/MQTT-Client-Framework) for IOS, [Paho MQTT Client](https://eclipse.org/paho/clients/android/) for Android
9
10
* Support both IOS and Android
10
11
* SSL/TLS
11
12
* Native library, support mqtt over tcp
12
13
13
14
## Warning
15
+
14
16
This library in progress developing, api may change, SSL/TLS non verify
15
17
16
18
## Getting started
17
19
18
20
### Manual install
19
21
20
22
#### JS
23
+
21
24
```bash
22
-
npm install rusfearuth/react-native-mqtt --save
25
+
npm install sp-react-native-mqtt --save
23
26
```
27
+
24
28
or
29
+
25
30
```bash
26
-
yarn add rusfearuth/react-native-mqtt
31
+
yarn add sp-react-native-mqtt
27
32
```
28
33
34
+
### Linking
35
+
36
+
```sh
37
+
react-native link sp-react-native-mqtt
38
+
```
29
39
30
40
#### iOS
31
-
- In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
32
-
- Go to `node_modules` ➜ `react-native-mqtt` and add `RCTMqtt.xcodeproj`
33
-
- In XCode, in the project navigator, select your project. Add `libRCTmqtt.a` and `libicucore.tbd` to your project's `Build Phases` ➜ `Link Binary With Libraries`
34
-
- Click `RCTMqtt.xcodeproj` in the project navigator and go the `Build Settings` tab. Make sure 'All' is toggled on (instead of 'Basic'). In the `Search Paths` section, look for `Header Search Paths` and make sure it contains both `$(SRCROOT)/../../react-native/React` - mark as `recursive`.
35
-
Add `pod 'MQTTClient'` to your podfile and `pod install`
36
-
- Run your project (`Cmd+R`)
37
41
42
+
* In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`
43
+
* Go to `node_modules` ➜ `react-native-mqtt` and add `RCTMqtt.xcodeproj`
44
+
* In XCode, in the project navigator, select your project. Add `libRCTmqtt.a` and `libicucore.tbd` to your project's `Build Phases` ➜ `Link Binary With Libraries`
45
+
* Click `RCTMqtt.xcodeproj` in the project navigator and go the `Build Settings` tab. Make sure 'All' is toggled on (instead of 'Basic'). In the `Search Paths` section, look for `Header Search Paths` and make sure it contains both `$(SRCROOT)/../../react-native/React` - mark as `recursive`.
46
+
* Add `pod 'MQTTClient'` to your podfile and `pod install`
47
+
* Run your project (`Cmd+R`)
38
48
39
49
#### Android
40
-
- Modify the ReactInstanceManager.builder() calls chain in `android/app/main/java/.../MainActivity.java` to include:
50
+
51
+
* Modify the ReactInstanceManager.builder() calls chain in `android/app/main/java/.../MainActivity.java` to include:
0 commit comments