system_get_vdd33()
Posted: Thu May 21, 2015 9:48 am
Hello everybody... ,
I've tried this SDK function in a small sketch but it seems to fail... the output is always 65535 ??
Has anyone managed it to work ??
I've tried this SDK function in a small sketch but it seems to fail... the output is always 65535 ??
Code: Select all
.
.
.
#include <ESP8266WiFi.h>
extern "C" { // ESP8266 SDK C functions
#include "user_interface.h"
}
.
.
.
void loop() {
// Check if a client has connected
WiFiClient client = server.available();
if (!client) {
return;
}
// Wait until the client sends some data
Serial.println("new client");
while(!client.available()){
delay(1);
}
// Wait until the client sends some data
Serial.print("Heap: ");
Serial.println(system_get_free_heap_size());
Serial.print(" VCC: ");
Serial.println([b]system_get_vdd33()[/b]);
.
.
.
Has anyone managed it to work ??