Auto hotspot implementation

This commit is contained in:
Robin Davies
2024-09-11 00:06:52 -04:00
parent bbfd0a07fd
commit 448979e7fe
61 changed files with 5234 additions and 178 deletions
+15
View File
@@ -327,6 +327,14 @@ namespace pipedal
bool allowNaN() const { return allowNaN_; }
void allowNaN(bool allow) { allowNaN_ = allow; }
void write(uint8_t value)
{
os << value;
}
void write(int8_t value)
{
os << value;
}
void write(long long value)
{
os << value;
@@ -882,6 +890,13 @@ namespace pipedal
skip_whitespace();
*value = read_boolean();
}
void read(uint8_t*value)
{
skip_whitespace();
is_ >> *value;
if (is_.fail())
throw JsonException("Invalid format.");
}
void read(int *value)
{
skip_whitespace();