diff --git a/projects/IoTNode/Program.cs b/projects/IoTNode/Program.cs index 155285dc..896aa3ee 100644 --- a/projects/IoTNode/Program.cs +++ b/projects/IoTNode/Program.cs @@ -32,4 +32,50 @@ namespace IoTNode .Run(); } } -} \ No newline at end of file +} +/* +1.程序 +(1)检查升级程序是否需要升级 +(2)升级升级程序 +(3)下载升级程序,检查checksum +(4)备份现有升级程序 +(5)关闭升级程序 +(6)升级升级程序:ui, db->start +(7)升级失败,还原升级程序,写入失败信息到程序存储 +(8)升级成功,启动升级程序 +(9)发送升级命令给升级程序 +2.升级程序 +(1)检查程序是否需要升级 +(2)下载新程序,检查checksum +(3)备份现有程序 +(4)升级程序 +(5)失败还原 +(6)成功启动 +*/ +/* +/// + /// + /// http://www.xml-rpc.net/faq/xmlrpcnetfaq-2-5-0.html#2.5 + /// http://supervisord.org/api.html + /// + [XmlRpcUrl("http://iot.edusoa.com:8003/RPC2")] + public interface ISupervisor : IXmlRpcProxy + { + [XmlRpcMethod("system.listMethods")] + string SystemListMethods(int stateNumber); + } + + class Program + { + static void Main(string[] args) + { + var proxy = XmlRpcProxyGen.Create(); + proxy.Credentials = new NetworkCredential("usr", "pwd"); + var list = proxy.SystemListMethods(); + foreach (var item in list) + { + Console.WriteLine(item); + } + } + } +*/ \ No newline at end of file