lora-serialization:The Things Network的LoraWAN序列化反序列化库

时间:2021-01-29 18:22:35
【文件属性】:
文件名称:lora-serialization:The Things Network的LoraWAN序列化反序列化库
文件大小:514KB
文件格式:ZIP
更新时间:2021-01-29 18:22:35
arduino serialization time serializer gps 用于物联网的LoRaWAN序列化/反序列化库 这个经过完全单元测试的库使您可以在Arduino端对数据进行编码,并在端对其进行解码。 它提供了基于C的编码器和基于JavaScript的解码器。 从2.2.0版开始,在TTN端也有一个编码器。 简而言之 在Arduino上编码,在TTN中解码 Arduino方面: # include " LoraMessage.h " LoraMessage message; message .addUnixtime( 1467632413 ) .addLatLng(- 33.905052 , 151.26641 ); lora_send_bytes (message.getBytes(), message.getLength()); delete message; TTN端: // include src/decoder.js var json = decode ( bytes , [ unixtime , latLng ] , [ 'time' , 'coords' ] ) ; // json == {time: unixt

网友评论