I am trying to set thermostat using FirebaseSharp with no success. I've downloaded padmore's example from http://www.codeproject.com/Articles/818265/NET-Works-with-Nest-Guide-to-calling-Nest-API-fro?msg=5010020#xx5010020xx. I am getting event when i change the value from the virtual device. I set thermostat to read/write as well. This is what is do: The problem is that firebaseClient.Post and firebaseClient.Put are called and never returned. also there is no exception.
private void buttonPost_Click( object sender, RoutedEventArgs e )
{
string data = "30";
string fullPath = "//devices//thermostats//<device id>//target_temperature_high_c";;
string t;
try
{
t = firebaseClient.Post( fullPath, data );
string i = string.Format( "firebaseClient.Post: {0}", t );
OutMessage( i );
return;
}
catch(Exception ex)
{
string i = string.Format( "firebaseClient.Post: exception {0}", ex.Message );
OutMessage( i );
}
try
{
t = firebaseClient.Put( fullPath, data );
string i = string.Format( "firebaseClient.Put: {0}", t );
OutMessage( i );
}
catch(Exception ex)
{
string i = string.Format( "firebaseClient.Put: exception {0}", ex.Message );
OutMessage( i );
}
}
So what am I doing wrong? I appreciate your help.