0. install/open Appemit.exe (F12 see console info) web AppEmbed rtsp PDF_Office DLL Homepage Register
1. connet websocket,support wss
2. 异步串口
3. usb hid; {"emit":"open", "Obj":"usbhid","AppShow":false,"par":{}, "par0":{"getUsbHids":1}}
4. 两个串口 [{"emit":"open","Obj":"comm","AppType":1,"pos":1,"par":{"objName":"Pcomm1","Port":"COM1","BaudRate":"9600","ByteSize":"8","Parity":"none","StopBits":"1"},"par0":{"Send_AsciiHex":"Ascii","Recv_AsciiHex":"Ascii"}},{"emit":"open","Obj":"comm","AppType":1,"AppId":2,"pos":1,"par":{"objName":"Pcomm2","Port":"COM2","BaudRate":"9600","ByteSize":"8","Parity":"none","StopBits":"1"},"par0":{"Send_AsciiHex":"Ascii","Recv_AsciiHex":"Ascii"}}]
发送数据 {"emit":"send","Obj":"comm","AppType":1,"AppId":1,"data":"可以,第1，from com1 ","par0":{"Send_AsciiHex":"Hex","toFormat":"Hex"}}
{"emit":"runCmd","Obj":"comm","AppType":1,"AppId":1,"codeStr":"AppJsObject.Pcomm1.write('动态写入ascii数据1')"}
测试启动 appemit