src/VirtualShield.cpp
/// <summary>
/// Event callback for when a full json string is received.
/// </summary>
/// <param name="json">The json string.</param>
/// <param name="shieldEvent">The shield event to populate.</param>

Event callback for when a full json string is received.

The json string.
The shield event to populate.
Event callback for when a full json string is received . The json string . The shield event to populate .
void VirtualShield::onJsonStringReceived(char* json, ShieldEvent* shieldEvent) {
#if defined(_WINDOWS_) || defined(_WINRT_DLL)
	DynamicJsonBuffer jsonBuffer;
#else
    StaticJsonBuffer<maxJsonReadBuffer> jsonBuffer;
#endif
	JsonObject& root = jsonBuffer.parseObject(json);
	if (root.success()) {
		onJsonReceived(root, shieldEvent);
	} 
	else
	{
	}
}
void VirtualShield :: onJsonStringReceived ( char * json , ShieldEvent * shieldEvent ) { #if defined ( _WINDOWS_ ) || defined ( _WINRT_DLL ) DynamicJsonBuffer jsonBuffer ; #else StaticJsonBuffer < maxJsonReadBuffer > jsonBuffer ; #endif JsonObject & root = jsonBuffer . parseObject ( json ) ; if ( root . success ( ) ) { onJsonReceived ( root , shieldEvent ) ; } else { } }
<summary>
Event callback for when a full json string is received.
<summary > Event callback for when a full json string is received .
//Serial.print("FAILED");