commit
01e3f68ae4
@ -1,6 +1,8 @@
|
|||||||
# ESP32-Paxcounter
|
# ESP32-Paxcounter
|
||||||
**Wifi & Bluetooth driven, LoRaWAN enabled, battery powered mini Paxcounter built on cheap ESP32 LoRa IoT boards**
|
**Wifi & Bluetooth driven, LoRaWAN enabled, battery powered mini Paxcounter built on cheap ESP32 LoRa IoT boards**
|
||||||
|
|
||||||
|
--> see development branch of this repository for latest alpha version <--
|
||||||
|
|
||||||
<img src="img/Paxcounter-title.jpg">
|
<img src="img/Paxcounter-title.jpg">
|
||||||
|
|
||||||
# Use case
|
# Use case
|
||||||
@ -114,6 +116,7 @@ If you're using [TheThingsNetwork](https://www.thethingsnetwork.org/) you may wa
|
|||||||
|
|
||||||
Decoder:
|
Decoder:
|
||||||
|
|
||||||
|
```javascript
|
||||||
function Decoder(bytes, port) {
|
function Decoder(bytes, port) {
|
||||||
var decoded = {};
|
var decoded = {};
|
||||||
if (port === 1) {
|
if (port === 1) {
|
||||||
@ -122,9 +125,11 @@ Decoder:
|
|||||||
}
|
}
|
||||||
return decoded;
|
return decoded;
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Converter:
|
Converter:
|
||||||
|
|
||||||
|
```javascript
|
||||||
function Converter(decoded, port) {
|
function Converter(decoded, port) {
|
||||||
var converted = decoded;
|
var converted = decoded;
|
||||||
if (port === 1) {
|
if (port === 1) {
|
||||||
@ -132,6 +137,7 @@ Converter:
|
|||||||
}
|
}
|
||||||
return converted;
|
return converted;
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
# Remote command set
|
# Remote command set
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user