User Tools

Site Tools


wiki:wiki3:api_migration_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:wiki3:api_migration_guide [2019/05/24 15:34]
ghi
wiki:wiki3:api_migration_guide [2020/12/21 17:54] (current)
tda
Line 3: Line 3:
 ===== Push API ===== ===== Push API =====
  
-In WMC v3.0, the push API changed and more relevant details are provided, such as the cluster ID or the device address.+From WMC v3.0 Software release, the push API changed and more relevant details are provided, such as the cluster IDdevice address ​or gwRecvTime for Message buffering (implemented for release 3.2.7).
  
-In this page the data is presented as a sample and with a mapping table, to ease the migration between the API versions.+In this pagethe data is presented as a sample and with a mapping table, to ease the migration between the API versions.
  
-For more informationplease ​refer to the User Guide and the API documentation,​ both available on the top right hand side menu of the WMC dashboard:+Please, refer to the following screenshots to get information about PushDataUP method:
  
-{{:wiki:wiki3:screenshot_from_2018-12-24_14-37-46.png|}}+{{:wiki3:​gms_api_pushdataup.png|}} 
 +{{:wiki3:gms_api_pushdataupdto2.png|}} 
 +{{:​wiki3:​gms_api_enddevicedto_1.png|}} 
 +{{:​wiki3:​gms_api_enddevicedto_2.png|}} 
 +{{:​wiki3:​gms_api_gatewayinfodto.png|}} 
 + 
 +For the response, here is the information that is available : 
 + 
 +{{:​wiki3:​gms_api_pushdataupdto_response.png|}} 
 +{{:​wiki3:​gms_api_enddevicedto_response.png|}} 
 + 
 +For instance, here is the type of information received by an HTTP push server (network message detail level): 
 + 
 +<​code>​ 
 +tda@dsc-tests:~$ nc -klp 8000 
 +POST /dataUp HTTP/1.1 
 +Host: 37.157.227.230:​8000 
 +User-Agent: Go-http-client/1.
 +Content-Length:​ 466 
 +Content-Type:​ application/​json 
 +Klk-Unsent-Dataup:​ true 
 +Accept-Encoding:​ gzip 
 + 
 +{"​id":"​5d2342ac71a1270001035042","​endDevice":​{"​devEui":"​343737394A336F09","​devAddr":"​24004F6B","​cluster":​{"​id":​1}},"​fPort":​2,"​fCntDown":​0,"​fCntUp":​6940,"​adr":​false,"​confirmed":​false,"​encrypted":​false,"​payload":"​0027800bddfd773b447bf9fede870046","​recvTime":​1562591916089,"​ulFrequency":​868.3,"​modulation":"​LORA","​dataRate":"​SF12BW125","​codingRate":"​4/​5","​gwCnt":​1,"​gwInfo":​[{"​gwEui":"​7276FF0039030436","​rfRegion":"​EU868","​rssi":​-107,"​snr":​-7,"​channel":​6,"​radioId":​1}]} 
 +</​code>​
  
 ==== URL Change ==== ==== URL Change ====
Line 40: Line 64:
   "​encrypted":​ false,   "​encrypted":​ false,
   "​payload":​ "​00266d0985067200000000000000ffff",​   "​payload":​ "​00266d0985067200000000000000ffff",​
-  "​recvTime":​ 1548769153024+  ​"​encodingType":​ "​HEXA",​ 
 +  ​"​recvTime":​ 1548769153024
 +  "​gwRecvTime":​ 1548769153024,​ 
 +  "​classB":​ false, 
 +  "​delayed":​ false 
 } }
 </​code>​ </​code>​
Line 106: Line 134:
   "​encrypted":​ false,   "​encrypted":​ false,
   "​payload":​ "​0027ff096cfc8218000000000000ffff",​   "​payload":​ "​0027ff096cfc8218000000000000ffff",​
 +  "​encodingType":​ "​HEXA",​
   "​recvTime":​ 1545650300180,​   "​recvTime":​ 1545650300180,​
 +  "​gwRecvTime":​ 1545650300180,​
 +  "​classB":​ false,
 +  "​delayed":​ false,
   "​ulFrequency":​ 868.5,   "​ulFrequency":​ 868.5,
   "​modulation":​ "​LORA",​   "​modulation":​ "​LORA",​
Line 129: Line 161:
 For your convenience,​ here is the mapping from/to the old/new API: For your convenience,​ here is the mapping from/to the old/new API:
  
-^ Field                                              ^ API v3.                      ^ API v2.3                       ^+^ Field                                              ^ API v3.                      ^ API v2.3                       ^
 | message identifier ​                                | ''​.id'' ​                       |                                | | message identifier ​                                | ''​.id'' ​                       |                                |
 | end device information ​                            | ''​.endDevice'' ​                ​| ​                               | | end device information ​                            | ''​.endDevice'' ​                ​| ​                               |
Line 144: Line 176:
 | Payload ​                                           | ''​.payload'' ​                  | ''​.userdata.payload'' ​         | | Payload ​                                           | ''​.payload'' ​                  | ''​.userdata.payload'' ​         |
 | Receive time (ms)                                  | ''​.recvTime'' ​                 |                                | | Receive time (ms)                                  | ''​.recvTime'' ​                 |                                |
 +| Gateway Receive time (ms)                          | ''​.gwRecvTime'' ​               |                                |
 | Uplink frequency ​                                  | ''​.ulFrequency'' ​              | ''​.moteTx.freq'' ​              | | Uplink frequency ​                                  | ''​.ulFrequency'' ​              | ''​.moteTx.freq'' ​              |
 | Uplink modulation ​                                 | ''​.modulation'' ​               | ''​.moteTx.modu'' ​              | | Uplink modulation ​                                 | ''​.modulation'' ​               | ''​.moteTx.modu'' ​              |
Line 156: Line 189:
 | Gateway channel number ​                            | ''​.gwInfo[].channel'' ​         | ''​.gwRx[].chan'' ​              | | Gateway channel number ​                            | ''​.gwInfo[].channel'' ​         | ''​.gwRx[].chan'' ​              |
 | Gateway radio identifier ​                          | ''​.gwInfo[].radioId'' ​         |                                | | Gateway radio identifier ​                          | ''​.gwInfo[].radioId'' ​         |                                |
 +
 +
 +
  
wiki/wiki3/api_migration_guide.1558704882.txt.gz · Last modified: 2019/05/24 15:34 by ghi