forked from canboat/canboatjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ios.js
35 lines (27 loc) · 1010 Bytes
/
ios.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
const FromPgn = require('./lib/fromPgn').Parser
const { pgnToYdgwRawFormat, actisenseToYdgwRawFormat, pgnToPCDIN, actisenseToPCDIN} = require('./lib/toPgn')
const parser = new FromPgn({})
global.parseYDGW02 = (pgn_data) => {
return parser.parseYDGW02(pgn_data)
}
global.parseVenusMQTT = (pgn_data) => {
return parser.parseVenusMQTT(pgn_data)
}
global.parseString = (pgn_data) => {
return parser.parseString(pgn_data)
}
global.actisenseToYdgwRawFormat = actisenseToYdgwRawFormat
global.pgnToYdgwRawFormat = pgnToYdgwRawFormat
global.pgnToPCDIN = pgnToPCDIN
global.actisenseToPCDIN = actisenseToPCDIN
global.pgnToMXPGN = pgnToMXPGN
global.actisenseToMXPGN = actisenseToMXPGN
global.parsePCDIN = (pcdin) => {
return parser.parseN2KOver0183(pcdin)
}
global.parseMXPGN = (mxpgn) => {
return parser.parseN2KOver0183(mxpgn)
}
global.parseHelmSmart = global.parsePCDIN
//global.toPgn: require('./lib/toPgn').toPgn,
//console.log(global.parseYDGW02('06:06:39.801 R 09F10DCC 00 FF FF 7F FF 7F FF FF'))