| 295 | } |
| 296 | |
| 297 | bool PeripheryManager_::parseSound(const char *json) |
| 298 | { |
| 299 | StaticJsonDocument<128> doc; |
| 300 | DeserializationError error = deserializeJson(doc, json); |
| 301 | if (error) |
| 302 | { |
| 303 | return playFromFile(String(json)); |
| 304 | } |
| 305 | if (doc.containsKey("sound")) |
| 306 | { |
| 307 | return playFromFile(doc["sound"].as<String>()); |
| 308 | } |
| 309 | return false; |
| 310 | } |
| 311 | |
| 312 | const char *PeripheryManager_::playRTTTLString(String rtttl) |
| 313 | { |
no outgoing calls
no test coverage detected