File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,13 @@ import ArduinoCloud from 'arduino-iot-js';
17
17
18
18
// connect establishes a connection with mqtt, using token as the password
19
19
// options = {
20
- // host: 'BROKER_URL', // Default is wss.iot.arduino.cc
21
- // port: BROKER_PORT, // Default is 8443
22
- // ssl: true/false, // Default is true
23
- // token: 'YOUR_BEARER_TOKEN' // Required!
24
- // apiUrl: 'AUTH SERVER URL', // Default is https://auth.arduino.cc
25
- // onDisconnect: message => { /* Disconnection callback */ }
20
+ // host: 'BROKER_URL', // Default is wss.iot.arduino.cc
21
+ // port: BROKER_PORT, // Default is 8443
22
+ // ssl: true/false, // Default is true
23
+ // token: 'YOUR_BEARER_TOKEN' // Required!
24
+ // apiUrl: 'AUTH SERVER URL', // Default is https://auth.arduino.cc
25
+ // onDisconnect: message => { /* Disconnection callback */ },
26
+ // useCloudProtocolV2: true/false, // Default is false
26
27
// }
27
28
ArduinoCloud .connect (options).then (() => {
28
29
// Connected
You can’t perform that action at this time.
0 commit comments