You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
209 B
JavaScript
12 lines
209 B
JavaScript
7 years ago
|
function ttn_decoder(bytes) {
|
||
|
// bytes is of type Buffer
|
||
|
|
||
|
// IMPORTANT: paste code from src/decoder.js here
|
||
|
|
||
|
return decode(
|
||
|
bytes,
|
||
|
[ unixtime, latLng ],
|
||
|
[ 'timestamp', 'coords' ]
|
||
|
);
|
||
|
}
|