Mbed example program connecting to Google Cloud IoT Core with MQTT over TLS.
Visit Google Cloud IoT from Mbed OS device page for detail instruction.
Connecting to Google Cloud IoT Core from a Mbed OS device.
Mbed example program connecting to Google Cloud IoT Core with MQTT over TLS.
Visit Google Cloud IoT from Mbed OS device page for detail instruction.
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
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 }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.