postman에서 led제어가 안되고있습니다 | ||||
jina park | 2017-06-30 18:18 | Views 1780 | ||||
thyme 설정파일 코드입니다 매번 감사드립니다 { "useprotocol": "http", "usesecure": "disable", "cse": { "host": "192.168.0.12", "port": "7579", "name": "mobius-yt", "id": "/mobius-yt", "mqttport": "7580" }, "ae": { "id": "ae-edu0", "parent": "/mobius-yt", "name": "ae-edu0", "appid": "0.2.481.1.1", "port": "9727", "bodytype": "json", "tasport": "3105" }, "cnt": [ { "parent": "/mobius-yt/ae-edu0", "name": "cnt-co2" }, { "parent": "/mobius-yt/ae-edu0", "name": "cnt-led" }, { "parent": "/mobius-yt/ae-edu0", "name": "cnt-timer" } ], "sub": [ { "parent": "/mobius-yt/ae-edu0/cnt-led", "name": "sub-ctrl", "nu": "mqtt://192.168.0.12/ae-edu0" } ], "acp": { "parent": "/mobius-yt/ae-edu0", "name": "acp-ae-edu0", "id": "ae-edu0" } } ===================================================== var conf = {}; var cse = {}; var ae = {}; var cnt_arr = []; var sub_arr = []; var acp = {}; conf.useprotocol = 'http'; // build cse cse.host = '192.168.0.12'; cse.port = '7579'; cse.name = 'mobius-yt'; cse.id = '/mobius-yt'; cse.mqttport = '7580'; // build ae ae.id = 'ae-edu0'; ae.parent = '/' + cse.name; ae.name = 'ae-edu0'; ae.appid = '0.2.481.1.1'; ae.port = '9727'; ae.bodytype = 'json'; ae.tasport = '3105'; // build cnt var count = 0; cnt_arr[count] = {}; cnt_arr[count++].name = 'cnt-co2'; cnt_arr[count] = {}; cnt_arr[count++].name = 'cnt-led'; cnt_arr[count] = {}; cnt_arr[count++].name = 'cnt-timer'; // build sub count = 0; sub_arr[count] = {}; sub_arr[count].name = 'sub-ctrl'; sub_arr[count++].nu = 'mqtt://' + cse.host + '/' + ae.id; //sub_arr[count++].nu = 'http://203.254.173.104:' + ae.port + '/noti'; //sub_arr[count++].nu = 'coap://203.254.173.104:' + ae.port + '/noti'; // build acp: not complete conf.usesecure = 'disable'; conf.cse = cse; conf.ae = ae; conf.cnt = cnt_arr; conf.sub = sub_arr; conf.acp = acp; |
||||
|