Search found 20 matches
- Wed Sep 04, 2024 12:36 pm
- Forum: ESP8266
- Topic: Passing two credentials at initial boot over serial, not a Website
- Replies: 13
- Views: 11824
Re: Passing two credentials at initial boot over serial, not a Website
If you've considered making a web config portal, with its own wifi hotspot where the user can connect from a computer or mobile, then I'd suggest using LittleFS or similar to host the web pages (HTML) as "files" on the device, which you then can simply upload (the /data directory) through a plugin i...
- Wed Sep 04, 2024 12:25 pm
- Forum: ESP8266
- Topic: Basic and noob question.
- Replies: 1
- Views: 6890
Re: Basic and noob question.
You only pass those three variables to the scd4x.readMeasurement method such that the library can fill the measurement values into them. This is passing by reference, which is a common alternative to having to return an "object" (a struct?) containing the three values. So, you call the method with t...
- Wed May 15, 2024 8:27 am
- Forum: ESP8266
- Topic: LittleFS and setting timestamp with new files & directories
- Replies: 1
- Views: 6601
Re: LittleFS and setting timestamp with new files & directories
I'm a bit confused on some things with your post :) What is `now()` in the ESP code? The ESP doesn't have a wall/real time clock. As far as I know, you can only get the milliseconds elapsed since boot time. It would be helpful to see some more code; I also don't know what the `setTime` function is, ...
- Wed May 15, 2024 8:16 am
- Forum: ESP8266
- Topic: Capture dateTime.html
- Replies: 1
- Views: 5059
Re: Capture dateTime.html
You could set up a POST endpoint in your web server (in your C code) which would accept a payload, i.e. your timestamp. Your HTML file would then call this endpoint (from Javascript) using for example an XMLHttpRequest. https://techtutorialsx.com/2017/03/26/esp8266-webserver-accessing-the-body-of-a-...
- Sun Feb 25, 2024 3:43 pm
- Forum: Hardware
- Topic: Wemos D1: Unable to use RX/TX pins (for hardware serial)
- Replies: 2
- Views: 3204
Re: Wemos D1: Unable to use RX/TX pins (for hardware serial)
The pins I've tried to use, are RX/TX also marked "UART0" in the pinout image. Maybe I should use UART1 (or even UART2), as described here: https://www.luisllamas.es/en/esp32-uart/ ?? Just to emphasize: The aim here is to be able to do any serial comms (preferrably, hardware serial over "soft"/virtu...
- Sun Feb 25, 2024 3:27 pm
- Forum: Hardware
- Topic: Wemos D1: Unable to use RX/TX pins (for hardware serial)
- Replies: 2
- Views: 3204
Wemos D1: Unable to use RX/TX pins (for hardware serial)
I'm unable to use the RX and TX pins on my Wemos D1 Mini (marked "MIN132") dev board for serial communications with a PC. I've configured standard hardware serial communications in the sketch, as shown below, which works perfectly if I connect the Wemos to the PC via the USB plug. However, I can't u...
- Sat Feb 17, 2024 10:16 am
- Forum: ESP-IDF
- Topic: ESP32 waking from sleep, but doesn't call setup
- Replies: 3
- Views: 1394
Re: ESP32 waking from sleep, but doesn't call setup
I guess this sort of changes the whole topic of the post. Seems I am indeed calling setup when waking up, but the problem is the criterion for actually waking the esp
- Fri Feb 16, 2024 7:35 pm
- Forum: ESP-IDF
- Topic: ESP32 waking from sleep, but doesn't call setup
- Replies: 3
- Views: 1394
Re: ESP32 waking from sleep, but doesn't call setup
Thanks for your response :) I had another look at my code, and one thing it seems I am missing is the command to actually set the ESP to deep sleep? I take it, `esp_sleep_enable_ext1_wakeup` needs to be followed by `esp_deep_sleep_start()` :) In any case, my problem is that I want the ESP to wake on...
- Wed Feb 14, 2024 9:53 pm
- Forum: ESP-IDF
- Topic: ESP32 waking from sleep, but doesn't call setup
- Replies: 3
- Views: 1394
ESP32 waking from sleep, but doesn't call setup
Hi! I've been experimenting with ESP8266 for a while, and have just got started looking into ESP32 :) I have an ESP-WROOM-32 WEMOS D1 MINI board. My aim is to set it to sleep (in setup), and then have it wake up whenever either of two GPIO pins change state (high->low, or low->high). After some rese...
- Tue Dec 05, 2023 7:52 am
- Forum: ESP8266
- Topic: Serial.swap() only for RX?
- Replies: 6
- Views: 100283
Re: Serial.swap() only for RX?
Well, in my case, I use the RX pin as a third GPIO (the ESP-1 is a very small breakout). Point is, I can still use TX pin to transmit serial at the same time