Skip to content

Commit 2448e42

Browse files
committed
Refactored with mqtt library instead of paho-client
1 parent 5828177 commit 2448e42

File tree

5 files changed

+625
-228
lines changed

5 files changed

+625
-228
lines changed

arduino-cloud.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function (RED) {
1515
this.propertyId = config.property;
1616
this.propertyName = config.propname;
1717
this.arduinoClient = await connectionManager.getClientMqtt(connectionConfig);
18-
if (this.arduinoClient && this.arduinoClient.connection.isConnected()) {
18+
if (this.arduinoClient && this.arduinoClient.connection.connected) {
1919
await this.arduinoClient.onPropertyValue(this.thing, this.propertyName, (msg) => {
2020
this.send(
2121
{

0 commit comments

Comments
 (0)