src/Sensor.cpp
/// <summary>
/// Event called when a valid json message was received. 
/// Consumes the proper values for this sensor.
/// </summary>
/// <param name="root">The root json object.</param>
/// <param name="shieldEvent">The shield event.</param>

Event called when a valid json message was received.
Consumes the proper values for this sensor.

The root json object.
The shield event.
Event called when a valid json message was received . Consumes the proper values for this sensor . The root json object . The shield event .
void Sensor::onJsonReceived(JsonObject &, ShieldEvent *shieldEvent) {
	this->_isUpdated = true;
	recentEvent = shieldEvent;
	if (onEvent)
	{
		onEvent(shieldEvent);
	}
}
void Sensor :: onJsonReceived ( JsonObject & , ShieldEvent * shieldEvent ) { this -> _isUpdated = true ; recentEvent = shieldEvent ; if ( onEvent ) { onEvent ( shieldEvent ) ; } }
<summary>
Event called when a valid json message was received.
<summary > Event called when a valid json message was received .