Search found 8 matches
- Tue Mar 21, 2017 4:45 pm
- Forum: ESP8266 boards
- Topic: Converting UTC in utime.localtime giving wrong date
- Replies: 5
- Views: 9343
Re: Converting UTC in utime.localtime giving wrong date
Thanks for the replies. You were on point in that the source of the problem was that the two sources had a different 0 point for their start point. As @dhylands suggested I can take the timestamp of 2000, 01, 01 00:00:00 in the 1976 epoch to convert to one utime.localtime() can use. Since I don't ne...
- Tue Mar 21, 2017 5:29 am
- Forum: ESP8266 boards
- Topic: Converting UTC in utime.localtime giving wrong date
- Replies: 5
- Views: 9343
Converting UTC in utime.localtime giving wrong date
I would like to make requests to an API, but one of the required parameters is a date string. My workaround for not having a RTC is to get a timestamp from timezonedb.com and convert it to a string. My issue is that, when I pass the timestamp through utime.localtime it returns a date 30 years in the...
- Fri Feb 03, 2017 8:12 pm
- Forum: ESP8266 boards
- Topic: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
- Replies: 19
- Views: 18487
Re: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
Thanks @pythoncoder, that was giving me trouble and I was sure there was a solution.
- Thu Feb 02, 2017 7:45 pm
- Forum: ESP8266 boards
- Topic: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
- Replies: 19
- Views: 18487
Re: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
Here you go: https://github.com/andrewlrogers/Microp ... mp-DisplayBigL3g wrote:If your code is cleaned up for sharing will you post it as a working example?
Hopefully this will work for you.
- Sat Jan 21, 2017 5:35 am
- Forum: ESP8266 boards
- Topic: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
- Replies: 19
- Views: 18487
Re: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
However, all this is speculation I guess to really solve this mystery, we need to code of both units and possibly the MQTT broker config file I have been planning on posting my code on github for everyone to take a look at. However, before posting I wanted to have clean code with nice comments. Whi...
- Thu Jan 12, 2017 9:27 pm
- Forum: ESP8266 boards
- Topic: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
- Replies: 19
- Views: 18487
Re: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
The display unit is the one that fails to connect. The sensor unit appears to be chugging along just fine.
EDIT:
Both feathers had different client id's in the initialization
EDIT:
Both feathers had different client id's in the initialization
- Thu Jan 12, 2017 9:09 pm
- Forum: ESP8266 boards
- Topic: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
- Replies: 19
- Views: 18487
Re: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
Thank you for the response and apologies for any confusion. I am using the broker on the rpi as an intermediary and I have had success in various tests. I am able to take data from the temp sensor on one feather, pass it via MQTT to the rpi broker and read it on a laptop. Similarly, I am able to tak...
- Thu Jan 12, 2017 6:14 pm
- Forum: ESP8266 boards
- Topic: Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
- Replies: 19
- Views: 18487
Problem with Multiple ESP8266 and MQTT. Blocked Sockets?
First, I am very new to programming, microcontollers, and networking so please be gentle. I currently have two Adafruit Feather Huzzah's; Feather1 has a temperature sensor attached to it, Feather2 has a 7 segment display attached to it. I also have a Raspberry Pi running as an MQTT broker. The end g...