Giter Club home page Giter Club logo

mbed-to-google-cloud-iot's Introduction

mbed-to-google-cloud-iot's People

Contributors

michalpasztamobica avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mbed-to-google-cloud-iot's Issues

ERROR: rc from MQTT connect is 4

Hi @coisme ,
Do you know if this sample is still current and works? I followed the detailed instructions but I am getting connection failure. Logs below with sensitive information redacted. Thanks

Mbed to Google IoT Cloud: version is 0.10

Opening network interface...
[EasyConnect] IPv4 mode
[EasyConnect] Using Ethernet
[EasyConnect] Connected to Network successfully
...
Network interface opened successfully.

JWT:
...
Connecting to host mqtt.googleapis.com:8883 ...
Connection established.

MQTT client is connecting to the service ...
ERROR: rc from MQTT connect is 4

google cloud error { Error: Connection refused: Bad username or password, code 5}

I am trying google cloud iot core connection from a raspberry in which balena os is installed , i am trying this example https://github.com/balena-io-examples/google-iot , it was working when we erase and reinstall the os inside the raspberry pi , but after running successfully for 2 to 3 days it was going to this error
this is an other error comes alternately with the previous one
MQTT error { Error: Connection refused: Bad username or password
01.12.21 16:51:37 (+0530) main at MqttClient._handleConnack (/app/node_modules/mqtt/lib/client.js:1076:15)
01.12.21 16:51:37 (+0530) main at MqttClient._handlePacket (/app/node_modules/mqtt/lib/client.js:365:12)
01.12.21 16:51:37 (+0530) main at work (/app/node_modules/mqtt/lib/client.js:283:12)
01.12.21 16:51:37 (+0530) main at Writable.writable._write (/app/node_modules/mqtt/lib/client.js:294:5)
01.12.21 16:51:37 (+0530) main at doWrite (/app/node_modules/readable-stream/lib/_stream_writable.js:428:64)
01.12.21 16:51:37 (+0530) main at writeOrBuffer (/app/node_modules/readable-stream/lib/_stream_writable.js:417:5)
01.12.21 16:51:37 (+0530) main at Writable.write (/app/node_modules/readable-stream/lib/_stream_writable.js:334:11)
01.12.21 16:51:37 (+0530) main at TLSSocket.ondata (_stream_readable.js:705:22)
01.12.21 16:51:37 (+0530) main at TLSSocket.emit (events.js:193:13)
01.12.21 16:51:37 (+0530) main at addChunk (_stream_readable.js:295:12) code: 4 }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.