Start supporting dict and json types.

This commit is contained in:
jmsgrogan 2024-01-03 09:13:23 +00:00
parent 94fcc42aed
commit 5183aa821a
32 changed files with 288 additions and 247 deletions

View file

@ -0,0 +1,11 @@
#include "Battery.h"
#include "File.h"
String Battery::get_capacity()
{
String content;
File f("/sys/class/power_supply/BAT1/capacity");
f.readText(content);
return content;
}