wemo | Should be used as a starting point
kandi X-RAY | wemo Summary
kandi X-RAY | wemo Summary
wemo Proof of Concept. Should be used as a starting point for your own UPnP WeMo hacking
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Turn on on
- Send a SOAP action
- Turn off the device
- Get the state of the device
wemo Key Features
wemo Examples and Code Snippets
Community Discussions
Trending Discussions on wemo
QUESTION
I am looking to create a standalone webserver using the Wemos D1 Mini Lite (this is the only wifi microcontroller I have and cant afford a different one atm).
I know SPIFFS works with ESP32 chips, but can I use it with ESP8285 chips?
Looking to have HTML and CSS for the webserver, with JS scripts to run functions (At the moment only functionality is turning LEDs off and on), all uploaded to the Wemos and run from that.
HTML CODE
...ANSWER
Answered 2021-May-11 at 02:15QUESTION
I developed a little application that read data from a sensor, store them in SPIFFS memory of my wemos D1 mini (esp8266) and then create a JSON Document and send it via MQTT to my topic. The problem is that as long as I send a JSON Doc with 10 object everything works great, but when I increase the size of the doc over 10 object nothing works. Eventually I need to send a JSON doc with 100 object inside.
What have I already done?
I'm using PubSubClient and I already set the MAX_PACKET_SIZE to the correct value
Using arduinojson assistant I found out the size of my JSON Document (8192 bytes)
I tried to use mqtt.fx to test if the problem was the esp8266 or the mqtt broker. Using mqtt.fx I'm able to send a JSON doc with 100 objects
As soon as I increase the size of the JSON doc I get a wdt error from the serial monitor of my arduino IDE.
I search the internet for wdt error but I don't get what they are and how to solve my problem
Last things I already tried to show on the serial monitor the file.txt in the SPIFFS where I store the data and I can store and then read the 100 object
So in the end I think it's an esp8266 problem and not PubSubClient or MQTT. Am I right? Does anyone of you here ever encountered this problem before or have some other test I can run?
...ANSWER
Answered 2021-Mar-25 at 16:42I search the internet for wdt error but I don't get what they are and how to solve my problem
WDT stands for a Watch Dog Timer. https://os.mbed.com/cookbook/WatchDog-Timer#:~:text=A%20watchdog%20timer%20(WDT)%20is,a%20software%20or%20hardware%20fault.
A watchdog timer (WDT) is a hardware timer that automatically generates a system reset if the main program neglects to periodically service it. It is often used to automatically reset an embedded device that hangs because of a software or hardware fault. Some systems may also refer to it as a computer operating properly (COP) timer. Many microcontrollers including the mbed processor have watchdog timer hardware.
Let's paint a better picture with an example. Let's say that you setup a WDT with a time of 10 seconds. Then the WDT starts counting down from 10 seconds. If it reaches 0 the processor will reset. "Feeding" the WDT will reset the countdown to the original value in this case 10 seconds. So if the WDT has counted down to 4 seconds remaining and you feed it, it resets the countdown back to 10 and starts counting down again.
Does anyone of you here ever encountered this problem before or have some other test I can run?
It looks to me like sending a larger JSON object takes a longer period of time than what the WDT is set for. One possibility would be to break up the JSON object into multiple pieces and send it in smaller chunks instead of one large one. This way the time between WDT "feedings" is reduced. I have no idea if this would be possible for you to change. But this should at least give you a better idea of what's happening.
QUESTION
I got an MPU connected to a wemos d1 mini. The sensor send 3 values: X,Y and Z axis. Since my project is solar powered I need to reduce power consumption. In order to do so I want to read the 3 values of the MPU every 3 seconds, store the values in an array and after 5 minutes of sampling power up the wifi and send the array via mqtt to my topic.
I've already tested every part of my code and everything works. For example if I try to send an array of three objects it works perfectly But when I try to send an array of 100 objects it doesn't work.
(Note: Where the above "100" come from? If I need to send data every 5 minutes and I read values every 3 seconds here I have 100 samplings)
Hope someone could help
...ANSWER
Answered 2021-Mar-09 at 07:07If you want one measure every three seconds instead of 100 measures every 3 seconds, the code should look like this:
QUESTION
I'm trying to send data from my Wemos to Node-red via MQTT. I created a nested object I want to send to MQTT. From the serial of Arduino IDE the output is this (and that's what I want):
[{"AcX":-1,"AcY":-1,"AcZ":-1},{"AcX":-1,"AcY":-1,"AcZ":-1},{"AcX":-1,"AcY":-1,"AcZ":-1},{"AcX":-1,"AcY":-1,"AcZ":-1},{"AcX":-1,"AcY":-1,"AcZ":-1}]
It seems all correct but the debug node show nothing. what am I missing?
Here's the code:
...ANSWER
Answered 2021-Mar-07 at 18:56Normally debug should show you what you are publishing to your MQTT broker. As simple troubleshooting I would start moving backwards:
- Replace the NodeRED client by any other one. Is the problem still there? Very likely it will be meaning that the problem is not on the MQTT client.
So we move a step "backwards"
- Replace the MQTT Broker, use another one from the internet, one that you know works fine. The problem, is it still there? If it's not there, voilà, you found the problem (the broker), if it's still there, it means that the issue is on client publishing your msgs. It might be the msg itself.
So we move a step "backwards"
- Replace you msg by another one, much simpler. Does it work ?
You get the idea :)
QUESTION
The arduino model name is wemos d1 mini and the board manager installed esp-8266. ML-NTC2 temperature sensor is Modbus 485 communication RTU method. Communication module is Esp-8266. http://comfilewiki.co.kr/ko/doku.php?id=ml-ntc2:index
...ANSWER
Answered 2020-Dec-11 at 11:48The chain in that the functions are called is
QUESTION
I am trying to connect my Arduino ESP8266 or any of the compatible board like WeMos mini or NodeMCU with my local server either localhost(127.0.0.1)
or 172.xx.xx.xxx port 80
, I get an httpResponseCode
-1 error. but if I have it connected to a remote server I get an httpResponseCode 200 (OK)
.
I am running an XMPP
server (even tested with Coldfusion server) My code is as below. Can anybody help?
ANSWER
Answered 2020-Nov-26 at 19:27127.0.0.1 is the Arduino itself, not your local server.
Every host / computer with an IP address also has an IP address 127.0.0.1; it is the address of the loopback interface.
This localhost address always refers to the current computer. The Arduino also has this address, and you are trying to connect to it.
Use the IP address of your XMPP server; find out what the address is first, that works much better than guessing and trying.
QUESTION
Problem: ESP8266 AsyncWebServer only works when I instantiate it as a global but not when I instantiate it inside a class.
Here's the two complete sketechs that both generate an error
Method 1: trying this without a constuctor to init:
...ANSWER
Answered 2020-Jun-07 at 00:42Use an initializer list on your constructor.
This is uncompiled and untested but should at least get you moving in the right direction.
QUESTION
I am working on a project involving 2 ESP32 Wemos D1 Mini boards. I am using the BLE feature to transmit a sensor reading from the "server" to the "client". I use a Characteristic Notify to the client which receives the sensor reading. If I want to implement deep sleep functionality to the server, what would happen to the client? Does the client also have to reset at some point? Also, is it advisable to use Characteristic.Notify in a deep sleep scenario?
Thanks.
Server code:
...ANSWER
Answered 2020-May-15 at 06:24Please see answers to your questions below:-
If I want to implement deep sleep functionality to the server, what would happen to the client? Does the client also have to reset at some point?
No the client does not have to reset, but you may have to reconnect to the server because in deep sleep the BLE connection is lost. If you want the connection to be established automatically as soon as the server wakes up, then you have to update the client code so that it continuously attempts to reconnect to the server. This way, as soon as the server wakes up, the client would connect to it and continue receiving notifications.
Also, is it advisable to use Characteristic.Notify in a deep sleep scenario?
In deep sleep the CPU will be off, therefore you will not be able to send notifications in this state. In this mode you will only be able to wake up the CPU through a timer or an external peripheral (e.g. touch pins). Please see the link below for more information:-
- https://lastminuteengineers.com/esp32-deep-sleep-wakeup-sources/
- https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/sleep_modes.html
- https://randomnerdtutorials.com/esp32-deep-sleep-arduino-ide-wake-up-sources/
I hope this helps.
QUESTION
I'm trying to upload the example Blink code to my ESP8266 modules, 1 of which is an ESP8266-07, the other a WeMos D1 mini PRO. I've installed the library for the ESPs according to online instructions. I'm uploading from Ubuntu 16.04, Arduino 1.8.9. I've also made sure to use sudo chmod 666 /dev/ttyUSB0
.
I've tried uploading both through a normal USB cable and through a USB-TTL board, both of which made no difference. My Tools > Board settings are "Generic ESP8266 module" for the ESP8266-07 and "LOLIN(WEMOS) D1 mini Pro" for my mini Pro. In all 4 cases (2 different boards, 2 uploading cables/gateways), I've got the same error message.
...ANSWER
Answered 2019-May-29 at 22:34There are a few different things to check for troubleshooting:
Check what your serial devices are enumerating as. They may be showing up as
/dev/ttyACM*
rather than/dev/ttyUSB0
Add your user to the dialout group
QUESTION
I have a Lolin D1 mini ESP8266 and a 0.66" oled screen soldered on top. I have some running micropython (1.12) examples using the screen to show some text, but I would like to use the screen's I2C buttons as well.
According to the documentation, the screen has a default i2c address 0x3C (60) and buttons are 0x31 (49). If I connect to the REPL and run this:
...ANSWER
Answered 2020-Apr-17 at 22:23Problem has been solved. I should have sent b’\x04’
instead of b’4’
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install wemo
You can use wemo like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page