Search found 896 matches: mqtt

Searched query: mqtt

by akushva
Sat Sep 21, 2019 11:22 am
Forum: General Discussion and Questions
Topic: Using Lan and Wifi at same time in esp32
Replies: 0
Views: 28

Using Lan and Wifi at same time in esp32

... from a device using TCP/IP protocol via Lan/Ethernet medium , this network doesn't have internet available. Now I want to send this data through mqtt via a different network(Say mobile hotspot based Wifi)which has a internet connection for which I am using umqtt library. So basically, I have ...
by sspaman
Wed Sep 18, 2019 2:58 pm
Forum: ESP8266 boards
Topic: Ever expanding heap
Replies: 5
Views: 118

Re: Ever expanding heap

Hi Jimmo, Thanks for taking a look at this. Here is the offending part of the code. As far as I can tell the problem is caused by the for loop in the first publish. I can adjust the number of iterations before crash by adjusting the number in the range(x). The routines called by the loop are below. ...
by kevinkk525
Fri Sep 13, 2019 3:00 pm
Forum: Programs, Libraries and Tools
Topic: MQTT topic matcher
Replies: 0
Views: 63

MQTT topic matcher

Everyone working with mqtt will probably handle his subscriptions one way or another but we all need to check, which subscription the incoming topic matches. Until now I only supported multi-level wildcards because it was easy and I ...
by kevinkk525
Thu Sep 05, 2019 2:23 pm
Forum: General Discussion and Questions
Topic: Smart heater thermostat
Replies: 0
Views: 74

Smart heater thermostat

... not put an additional esp8266 with arduino/espeasy in every room just for controlling those.. But I couldn't really find good solutions for a mqtt controlled wifi power outlet either. I know there are a few proprietary ones like sonoff but flashing micropython on them does not seem to be a ...
by devnull
Wed Sep 04, 2019 11:40 pm
Forum: General Discussion and Questions
Topic: umqtt_simple - bytes index out of range new error
Replies: 7
Views: 434

Re: umqtt_simple - bytes index out of range new error

Can anybody else confirm with a live mqtt setup (simple_mqtt or robust_mqtt) on the pyboard D series that mqtt is working for them ??

My gut feeling is that this is somehow related to the socket, as this code is pretty much only reading and writing to the socket and is not getting a reply.
by devnull
Wed Sep 04, 2019 10:23 am
Forum: General Discussion and Questions
Topic: umqtt_simple - bytes index out of range new error
Replies: 7
Views: 434

Re: umqtt_simple - bytes index out of range new error

OK, here's some debug info that has been added to mqtt_simple: This is the code from mqtt_simple: self.sock.write(premsg, i + 2) self.sock.write(msg) print('dbug-msg:',hex(len(msg)), hexlify(msg, ":")) self._send_str(self.client_id) if self.lw_topic: ...
by Jimmy_Hedman
Tue Sep 03, 2019 8:30 pm
Forum: General Discussion and Questions
Topic: Connecting to AWS with MQTT
Replies: 11
Views: 3381

Re: Connecting to AWS with MQTT

To be able to connect to AWS with an ESP8266 you need to convert the certificatefile and the keyfile to DER format. See https://github.com/micropython/micropyt ... -453802236
by devnull
Tue Sep 03, 2019 12:00 pm
Forum: General Discussion and Questions
Topic: umqtt_simple - bytes index out of range new error
Replies: 7
Views: 434

umqtt_simple - bytes index out of range new error

Just updated micropython on the SF2 and are now noticing mqtt errors (umqtt_simple line 84) during the connection process. This tries to connect 3 times and if it fails will goto sleep and try again later. But I don't recall seeing this "bytes index ...
by ThomasChr
Tue Sep 03, 2019 6:48 am
Forum: General Discussion and Questions
Topic: Inconsistent results measuring pulses
Replies: 12
Views: 465

Re: Inconsistent results measuring pulses

Hi ghayne, I've done the very same thing (without using MQTT, that is) and here is the code: https://github.com/ThomasChr/ESP8266-read-power-meter/blob/master/main.py Works since a few months now and only resets/crashes about all two months. So pretty ...
by ThomasChr
Tue Sep 03, 2019 6:06 am
Forum: General Discussion and Questions
Topic: Taking sensor's data from Arduino
Replies: 1
Views: 125

Re: Taking sensor's data from Arduino

... you got the data it's your decision how to save it. On an ESP8266 sending the data over WiFi comes to mind first, maybe using HTTP Requests or MQTT. Of course that means you need to have a server (with a harddrive?) to receive the data and save it permanently. The ESP8266 can also save the ...