通过HTTP测试该API调用 (URL):
Specify network protocol, 'tcp' or 'udp' is valid.
测试值:
Listen at local network interface and port. Format is "address:port", which address can be '*' that means listen at any network interface.
Forward the packet to target, format is "address:port", which address is an IP or domain name.
Optional, but it's important for multiple interface transmission. Specify what network interface this forwarding works on. Refer to getNetInterface.lua to get all valid interfaces, check the 'Type' field in result of getNetInterface.lua to get the special interface name of what you want. For example, the interface type equals to 'MODEM' means it is a 3G/4G network interface.
Optional. The maximum packet size for data transmission, in KB. The default value is 64 (KB), this suits general applications. Do not set it less than MTU (1500 bytes) size is suggested!
Optional. Socket receiving buffer size, in KB. The default value is 256 (KB). Don't make it to be too small.
Socket sending buffer size, in KB. The default value is 256 (KB).
返回JSON格式的结果。该JSON数据的格式如下:
200表示OK, 其它错误码含义类似于HTTP Response.
状态消息。反馈API执行的结果状态,如有错误,将描述出错的原因。
KILOVIEW Device HTTP API, v1.0
Copyright (c) 2016, KILOVIEW Electronics.