OneNET IoT Platform Platform Introduction Introduction Manual Guidline for Device Development Guideline for Application Development
API
API Usage API List SDK MQTT LwM2M EDP Modbus TCP
HTTP Push

# TCP Access Instructions

Step1 Create product and select TCP transparent

First you need to create product with access is TCP transparent on the platform, view Product Create If you don't have an OneNET account, you can proceed User Registration

Step2 Create device, record device ID and other information

Click add device on the page, input device name and authentication information (i.e. device number). For the specific platform resource model, refer to Chapter I Resource Model, and record the device number.

Step3 Upload Lua script

Upload the parsing script to product through the page, as shown below: pic pic

Step4 Establish connection

Power on the device, establish TCP connection with OneNET access service (domain name: iot.zong.com.pk:1811), and send login message in following format:

*$PID#$AUTH_INFO#$PARSER_NAME*

Example:

*12346#sn823mdn#testlua*

: Where, the parameters are explained as follows:

  • PID: Product ID, the unique digital identification of the product generated by OneNET when create product
  • AUTH_INFO: Device authentication information, the unique string identification specified when create device during device registration
  • PARSER_NAME: The name of user-defined parsing script, the unique string identification specified when upload script

If connection succeeds, an online token of device will be seen:

pic)

Step5 Diplay datastream, view datapoints

Click data display under device management on OneNET, enter the data display page, click and drop-down menu to view recently uploaded datapoints, or select time interval to view historical time

results matching ""

    No results matching ""