public Task <TConfig> ConfigGet <TConfig>(string deviceId, string key) { var args = new { key }; return(_rpcClient.SendAsync <TConfig>(deviceId, "Config.Get", args)); }
public async Task <UpdateFirmwareResponse> UpdateFirmwareAsync(string deviceId, string firmwareUrl) { var args = new { Url = firmwareUrl }; var success = await _rpcClient.SendAsync <bool>(deviceId, "OTA.Update", _timeout, args); return(new UpdateFirmwareResponse { Success = success }); }
public Task UpdateFirmwareAsync(string deviceId, string firmwareUrl) { var args = new { Url = firmwareUrl }; return(_rpcClient.SendAsync(deviceId, "OTA.Update", _timeout, args)); }
public Task <PingResponse> PingAsync(string deviceId) { return(_rpcClient.SendAsync <PingResponse>(deviceId, "RPC.Ping")); }
public Task <SysInfoResponse> GetInfoAsync(string deviceId) { return(_rpcClient.SendAsync <SysInfoResponse>(deviceId, "Sys.GetInfo")); }