Search found 1947 matches: mqtt

Searched query: mqtt

by fishjoe
Sun Oct 09, 2022 5:44 am
Forum: ESP8266 boards
Topic: how can non-blocking socket instances be implemented
Replies: 14
Views: 68162

Re: how can non-blocking socket instances be implemented

pythoncoder wrote:
Fri Jan 05, 2018 8:24 am
This example illustrates reading from, and writing to, a nonblocking socket.
this is what I assume a library of umqtt isn't it? It's so complicated that I cannot follow ...... :shock: :shock:
by fishjoe
Sat Oct 08, 2022 9:46 am
Forum: Raspberry Pi microcontroller boards
Topic: Pico w mqtt_as to HiveMQ Cloud
Replies: 4
Views: 41002

Re: Pico w mqtt_as to HiveMQ Cloud

worked out solution. client = MQTTClient(secrets.client_id, secrets.mqtt_server, port=secrets.mqtt_port, user=secrets.mqtt_username, password=secrets.mqtt_psd, ssl=True, ssl_params={ "server_hostname": secrets.mqtt_server}) especially: ssl=True, ssl_params={ "server_hostname": secrets.mqtt_server}
by scruss
Tue Sep 27, 2022 4:40 pm
Forum: Raspberry Pi microcontroller boards
Topic: Strange behaviour with Thonny/standalone
Replies: 3
Views: 36879

Re: Strange behaviour with Thonny/standalone

... MicroPython - Raspberry Pi Forums ) Thonny quietly sets the Pico's system clock on connection. In standalone mode, this doesn't happen. Maybe your MQTT broker is expecting a mostly-correct timestamp? Since you're connecting to a network, you could use the ntptime.settime() method (it's a built-in ...
by warren
Tue Sep 27, 2022 2:14 pm
Forum: Raspberry Pi microcontroller boards
Topic: Strange behaviour with Thonny/standalone
Replies: 3
Views: 36879

Strange behaviour with Thonny/standalone

... on a Pico W which does the following: Establishes a Wifi connection to my network Repeatedly takes temperatures from a sensor Sends them to my MQTT broker Flashes the onboard Pi Pico W LED each time it publishes. I have a main.py programme, and several other libraries that are loaded (including ...
by fishjoe
Thu Sep 15, 2022 10:12 am
Forum: Raspberry Pi microcontroller boards
Topic: Pico w mqtt_as to HiveMQ Cloud
Replies: 4
Views: 41002

Re: Pico w mqtt_as to HiveMQ Cloud

Im having the same problem so I wish to get some help. Just few questions: How should I get ssl work? Do i have to have any certificate file? Why do I not need when I using other client app.(they only need to "tick" on option "using SSL"). If so, where should I get whatever certificate file and wher...
by garudaone
Mon Sep 12, 2022 3:45 am
Forum: ESP8266 boards
Topic: Remote OTA using YAOTA8266
Replies: 0
Views: 172540

Remote OTA using YAOTA8266

... of esp8266(act as server) listening for update from server. https://github.com/pfalcon/yaota8266 Is there anyway to do this, either HTTP or MQTT or a better solution? Thanks;
by Rissy
Fri Sep 02, 2022 6:47 pm
Forum: Raspberry Pi microcontroller boards
Topic: BMP280 / BME280 uPython
Replies: 45
Views: 432208

Re: BMP280 / BME280 uPython

Rissy, you seek a genius but why are you trying to use 2 mqtt brokers when just one broker can service 1000's of clients? Mqtt client programs connected to just one broker (even one running on your little rpi) can send messages on whatever topic is desired ...
by beetle
Fri Sep 02, 2022 5:07 pm
Forum: Raspberry Pi microcontroller boards
Topic: BMP280 / BME280 uPython
Replies: 45
Views: 432208

Re: BMP280 / BME280 uPython

Rissy, you seek a genius but why are you trying to use 2 mqtt brokers when just one broker can service 1000's of clients? Mqtt client programs connected to just one broker (even one running on your little rpi) can send messages on whatever topic is desired ...
by Rissy
Fri Sep 02, 2022 7:07 am
Forum: Raspberry Pi microcontroller boards
Topic: BMP280 / BME280 uPython
Replies: 45
Views: 432208

Re: BMP280 / BME280 uPython

I've got two separate MQTT receive files working. One looks at one broker, and the other looks at another broker. I attempted to combine these files to give me just one, but i'm not sure if this is allowed or not. The code partially ...
by Rissy
Thu Sep 01, 2022 2:57 pm
Forum: Raspberry Pi microcontroller boards
Topic: BMP280 / BME280 uPython
Replies: 45
Views: 432208

Re: BMP280 / BME280 uPython

... little bit of a tweek for decimal places and that was it. I spent hours the other day using just the CPU temp on the Pico W to test the additional MQTT link during setting up my second RP4B much like what I already had on my first RP4B which is still stuck up in my loft. Everything is looking good, ...