Commit 8de49963 authored by Rostislav Spinar's avatar Rostislav Spinar

Adding example for C

parent 04b07c9f
Pipeline #1712 canceled with stages
in 47 seconds
......@@ -244,7 +244,7 @@
/// <summary>
/// GW IP address
/// </summary>
const string IqrfGwDeamonIP = "192.168.1.101";
const string IqrfGwDeamonIP = "10.0.1.29";
/// <summary>
/// Log transaction
......@@ -253,7 +253,7 @@
/// <param name="data"></param>
private static void logTransaction(string mType, string prefix, string data)
{
System.IO.File.AppendAllText(@"..\..\log\" + mType + ".log", prefix + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.FFF") + "\r\n" + data + "\r\n");
System.IO.File.AppendAllText(@"logs\" + mType + ".log", prefix + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.FFF") + "\r\n" + data + "\r\n");
}
/// <summary>
......@@ -264,7 +264,7 @@
/// <param name="data"></param>
private static void logExample(string mType, string direction, string data)
{
System.IO.File.WriteAllText(@"..\..\log\" + mType + "-" + direction + "-1-0-0-example.json", data);
System.IO.File.WriteAllText(@"logs\" + mType + "-" + direction + "-1-0-0-example.json", data);
}
/// <summary>
......@@ -1166,11 +1166,13 @@
*/
/* IQMESH */
/*
IqmeshNetwork_BondNodeLocal_Request request = new IqmeshNetwork_BondNodeLocal_Request();
request.Data.MsgId = "testIqmeshBondNodeLocal";
request.Data.Repeat = 2;
request.Data.Req.DeviceAddr = 1;
request.Data.ReturnVerbose = true;
*/
/*
IqmeshNetwork_SmartConnect_Request request = new IqmeshNetwork_SmartConnect_Request();
......@@ -1182,13 +1184,11 @@
request.Data.ReturnVerbose = true;
*/
/*
IqmeshNetwork_EnumerateDevice_Request request = new IqmeshNetwork_EnumerateDevice_Request();
request.Data.MsgId = "testIqmeshEnumerate";
request.Data.Repeat = 1;
request.Data.Req.DeviceAddr = 12;
request.Data.Req.DeviceAddr = 0;
request.Data.ReturnVerbose = true;
*/
/*
IqmeshNetwork_ReadTrConf_Request request = new IqmeshNetwork_ReadTrConf_Request();
......@@ -1418,9 +1418,9 @@
/* IQMESH */
IqmeshNetwork_BondNodeLocal_Response response = IqmeshNetwork_BondNodeLocal_Response.FromJson(responseStr[0]);
//IqmeshNetwork_BondNodeLocal_Response response = IqmeshNetwork_BondNodeLocal_Response.FromJson(responseStr[0]);
//IqmeshNetwork_SmartConnect_Response response = IqmeshNetwork_SmartConnect_Response.FromJson(responseStr[0]);
//IqmeshNetwork_EnumerateDevice_Response response = IqmeshNetwork_EnumerateDevice_Response.FromJson(responseStr[0]);
IqmeshNetwork_EnumerateDevice_Response response = IqmeshNetwork_EnumerateDevice_Response.FromJson(responseStr[0]);
//IqmeshNetwork_ReadTrConf_Response response = IqmeshNetwork_ReadTrConf_Response.FromJson(responseStr[0]);
//IqmeshNetwork_WriteTrConf_Response response = IqmeshNetwork_WriteTrConf_Response.FromJson(responseStr[0]);
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.