@@ -13,37 +13,37 @@ class Lora extends protocol.Data:
1313 static SLEEP := 11
1414 static STATE := 12
1515
16- static setMsg --spreadFactor / int --codingRate / int --bandwidth / int --centerFrequency / int --txPower / int --preambleLength / int --sleep / int?= null -> protocol.Message :
16+ static set-msg --spread-factor / int --coding-rate / int --bandwidth / int --center-frequency / int --tx-power / int --preamble-length / int --sleep / int?= null -> protocol.Message :
1717 msg := protocol .Message MT
18- msg .data .add-data-uint8 SPREAD-FACTOR spreadFactor
19- msg .data .add-data-uint8 CODING-RATE codingRate
18+ msg .data .add-data-uint8 SPREAD-FACTOR spread-factor
19+ msg .data .add-data-uint8 CODING-RATE coding-rate
2020 msg .data .add-data-uint8 BANDWIDTH bandwidth
21- msg .data .add-data-uint32 CENTER-FREQUENCY centerFrequency
22- msg .data .add-data-uint8 TX-POWER txPower
23- msg .data .add-data-uint8 PREAMBLE-LENGTH preambleLength
21+ msg .data .add-data-uint32 CENTER-FREQUENCY center-frequency
22+ msg .data .add-data-uint8 TX-POWER tx-power
23+ msg .data .add-data-uint8 PREAMBLE-LENGTH preamble-length
2424 if sleep :
2525 msg .data .add-data-uint8 SLEEP sleep
2626 msg .header .data .add-data-uint8 protocol .Header .TYPE-MESSAGE-METHOD protocol .Header .METHOD-SET
2727 return msg
2828
29- static getMsg -> protocol.Message :
29+ static get-msg -> protocol.Message :
3030 msg := protocol .Message MT
3131 msg .header .data .add-data-uint8 protocol .Header .TYPE-MESSAGE-METHOD protocol .Header .METHOD-GET
3232 return msg
3333
34- static doMsg --payload / ByteArray --receiveMs / int -> protocol.Message :
34+ static do-msg --payload / ByteArray --receive-ms / int -> protocol.Message :
3535 msg := protocol .Message MT
3636 msg .data .add-data PAYLOAD payload
37- msg .data .add-data-uint32 RECEIVE-MS receiveMs
37+ msg .data .add-data-uint32 RECEIVE-MS receive-ms
3838 msg .header .data .add-data-uint8 protocol .Header .TYPE-MESSAGE-METHOD protocol .Header .METHOD-DO
3939 return msg
4040
41- static subscribeMsg -> protocol.Message :
41+ static subscribe-msg -> protocol.Message :
4242 msg := protocol .Message MT
4343 msg .header .data .add-data-uint8 protocol .Header .TYPE-MESSAGE-METHOD protocol .Header .METHOD-SUBSCRIBE
4444 return msg
4545
46- static unsubscribeMsg -> protocol.Message :
46+ static unsubscribe-msg -> protocol.Message :
4747 msg := protocol .Message MT
4848 msg .header .data .add-data-uint8 protocol .Header .TYPE-MESSAGE-METHOD protocol .Header .METHOD-UNSUBSCRIBE
4949 return msg
@@ -54,25 +54,25 @@ class Lora extends protocol.Data:
5454 payload -> ByteArray :
5555 return get-data PAYLOAD
5656
57- spreadFactor -> int :
57+ spread-factor -> int :
5858 return get-data-uint8 SPREAD-FACTOR
5959
60- codingRate -> int :
60+ coding-rate -> int :
6161 return get-data-uint8 CODING-RATE
6262
6363 bandwidth -> int :
6464 return get-data-uint8 BANDWIDTH
6565
66- centerFrequency -> int :
66+ center-frequency -> int :
6767 return get-data-uint32 CENTER-FREQUENCY
6868
69- txPower -> int :
69+ tx-power -> int :
7070 return get-data-uint8 TX-POWER
7171
72- preambleLength -> int :
72+ preamble-length -> int :
7373 return get-data-uint8 PREAMBLE-LENGTH
7474
75- receiveMs -> int :
75+ receive-ms -> int :
7676 return get-data-uint32 RECEIVE-MS
7777
7878 sleep -> int :
@@ -84,13 +84,13 @@ class Lora extends protocol.Data:
8484 stringify -> string :
8585 return {
8686 "Payload" : payload ,
87- "Spread Factor" : spreadFactor ,
88- "Coding Rate" : codingRate ,
87+ "Spread Factor" : spread-factor ,
88+ "Coding Rate" : coding-rate ,
8989 "Bandwidth" : bandwidth ,
90- "Center Frequency" : centerFrequency ,
91- "TX Power" : txPower ,
92- "Preamble Length" : preambleLength ,
93- "Receive Ms" : receiveMs ,
90+ "Center Frequency" : center-frequency ,
91+ "TX Power" : tx-power ,
92+ "Preamble Length" : preamble-length ,
93+ "Receive Ms" : receive-ms ,
9494 "Sleep" : sleep ,
9595 "State" : state ,
9696 } .stringify
0 commit comments