35 int record(
long milliseconds, String url = (
const char*)0,
bool keepLocal =
false,
bool autoplay =
false);
Definition: Microphone.h:30
Definition: VirtualShield.h:50
int record(long milliseconds, String url=(const char *) 0, bool keepLocal=false, bool autoplay=false)
Records audio for the specified milliseconds and optionally saves/sends it to a url.
Definition: Microphone.cpp:50
VirtualShield & shield
Definition: Sensor.h:55
void onJsonReceived(JsonObject &root, ShieldEvent *shieldEvent) override
Event called when a valid json message was received. Consumes the proper values for this sensor...
Definition: Microphone.cpp:64
Microphone(const VirtualShield &shield)
Initializes a new instance of the Microphone class.
Definition: Microphone.cpp:41
Definition: ShieldEvent.h:35