Search found 119 matches

by AgentSmithers
Thu Aug 09, 2018 3:44 am
Forum: ESP8266 SDK
Topic: ltoa itoa - sys_itoa
Replies: 0
Views: 40

ltoa itoa - sys_itoa

https://github.com/espressif/esp8266-no ... lwIPFile.c

Hi Everyone,
Is sys_itoa the correct function to call or does the esp have an os_itoa or something similar that I am overlooking?
Thank you!!
by AgentSmithers
Wed Aug 08, 2018 2:52 am
Forum: ESP8266 SDK
Topic: Measuring Battery Life
Replies: 7
Views: 250

Re: Measuring Battery Life

Why not just try it? The 107th (0x6B) byte has to be 0xFF. system_get_vdd33() returns the voltage in 1/1024 Volt. So calculate system_get_vdd33() * 1000L >> 10 to get the battery voltage in mV. It works here... (ESP-01) Blubb, How does your logic work Do you take the value returned by vdd multiply ...
by AgentSmithers
Thu Aug 02, 2018 11:08 pm
Forum: ESP8266 SDK
Topic: Creating a Blocking Thread on espconn_gethostbyname
Replies: 4
Views: 291

Re: Creating a Blocking Thread on espconn_gethostbyname

Hey, I am also studying a way to do a kind of wait() or delay() that would block the execution of my function while letting the SDK do its background tasks like Wifi and TCP processing. I've found very intersesting things in the ESP support for Arduino IDE: their great guys heve build this exact sa...
by AgentSmithers
Thu Aug 02, 2018 12:46 am
Forum: ESP8266 SDK
Topic: Measuring Battery Life
Replies: 7
Views: 250

Re: Measuring Battery Life

system_get_vdd33() directly measures the supply voltage. No other pins are required for this. The SDK manual also says that TOUT pin needs to be suspended. I am using the very simple ESP-01 modules. I have no idea what they did to that pin, but it works just fine. Gotcha, So TOUT for me I think is ...
by AgentSmithers
Thu Aug 02, 2018 12:18 am
Forum: ESP8266 SDK
Topic: Measuring Battery Life
Replies: 7
Views: 250

Re: Measuring Battery Life

Why not just try it? The 107th (0x6B) byte has to be 0xFF. system_get_vdd33() returns the voltage in 1/1024 Volt. So calculate system_get_vdd33() * 1000L >> 10 to get the battery voltage in mV. It works here... (ESP-01) That's interesting. Do I need to put a voltage divider for this example? After ...
by AgentSmithers
Tue Jul 31, 2018 7:22 am
Forum: ESP8266 SDK
Topic: Creating a Blocking Thread on espconn_gethostbyname
Replies: 4
Views: 291

Re: Creating a Blocking Thread on espconn_gethostbyname

Everyone, I wanted to circle back and say at this point in time I am convinced this is not possible due to internal processes that take place once the code returns to the SDK internal calls. I required this to simplify the call tree being created depending on the circumstances but at this point, I h...
by AgentSmithers
Tue Jul 31, 2018 12:06 am
Forum: ESP8266 SDK
Topic: Measuring Battery Life
Replies: 7
Views: 250

Re: Measuring Battery Life

Anyone?
Thank you!
by AgentSmithers
Wed Jul 25, 2018 4:25 am
Forum: ESP8266 SDK
Topic: Disable echo on UART0
Replies: 2
Views: 290

Re: Disable echo on UART0

Okay, most of these issues were because of the code in uart.c, which I believed to be a simple classic UART drive, actually implemented some processing of the bytes like reprinting them. I simply removed most of the code in this file to write my own driver. (https://bbs.espressif.com/viewtopic.php?...
by AgentSmithers
Mon Jul 23, 2018 8:44 am
Forum: ESP8266 SDK
Topic: Measuring Battery Life
Replies: 7
Views: 250

Measuring Battery Life

Hi everyone, I am using the Wemos D1 Mini Pro. I just want to reach out and make sure I'm going down the correct path by setting my 107th byte in my init.bin and also I call system_get_vdd33 to get an arbitrary value depending on my battery correct? The batter will be connected to pin 3v3 and gnd. h...
by AgentSmithers
Sat Jul 14, 2018 1:37 am
Forum: ESP8266 SDK
Topic: SPI Erase Sector OTA
Replies: 4
Views: 251

Re: SPI Erase Sector OTA

You can only write zeros (0) into a flash memory. If you need to put a one (1) into a bit that was zero before, you have to erase the whole block and after that zero out the bits that need to be zero. Erasing is a totally different from writing. That is the short summary of how all flash memories w...

Go to advanced search