Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0fc65e8

Browse files
author
Catalin Ioana
committed
[pymesh] update 2020 copyright
1 parent c372c91 commit 0fc65e8

File tree

12 files changed

+22
-23
lines changed

12 files changed

+22
-23
lines changed

pymesh/pymesh_frozen/lib/ble_rpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'''
2-
Copyright (c) 2019, Pycom Limited.
2+
Copyright (c) 2020, Pycom Limited.
33
This software is licensed under the GNU GPL version 3 or any
44
later version, with permitted additional terms. For more information
55
see the Pycom Licence v1.0 document supplied with this file, or
@@ -66,7 +66,7 @@ def on_rcv_message(self, message):
6666
self.rx_worker.put(msg)
6767
print(message_data['payload'])
6868
print("%d ================= RECEIVED :) :) :) "%time.ticks_ms())
69-
69+
7070

7171
def on_rcv_ack(self, message):
7272
''' hook triggered when the ACK arrived '''
@@ -77,7 +77,7 @@ def on_rcv_ack(self, message):
7777
msg = msgpack.packb(['notify', 'msg-ack', message_data])
7878
self.rx_worker.put(msg)
7979
print("%d ================= ACK RECEIVED :) :) :) "%time.ticks_ms())
80-
80+
8181
def ble_on_disconnect(self):
8282
''' if BLE disconnected, it's better to re-instantiate RPC handler '''
8383
self.rpc_handler = RPCHandler(self.rx_worker, self.tx_worker, self.mesh, self.ble_comm)

pymesh/pymesh_frozen/lib/ble_services.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2019, Pycom Limited.
1+
# Copyright (c) 2020, Pycom Limited.
22
#
33
# This software is licensed under the GNU GPL version 3 or any
44
# later version, with permitted additional terms. For more information

pymesh/pymesh_frozen/lib/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Copyright (c) 2019, Pycom Limited.
2+
# Copyright (c) 2020, Pycom Limited.
33
#
44
# This software is licensed under the GNU GPL version 3 or any
55
# later version, with permitted additional terms. For more information

pymesh/pymesh_frozen/lib/gps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Copyright (c) 2019, Pycom Limited.
2+
# Copyright (c) 2020, Pycom Limited.
33
#
44
# This software is licensed under the GNU GPL version 3 or any
55
# later version, with permitted additional terms. For more information

pymesh/pymesh_frozen/lib/loramesh.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Copyright (c) 2019, Pycom Limited.
2+
# Copyright (c) 2020, Pycom Limited.
33
#
44
# This software is licensed under the GNU GPL version 3 or any
55
# later version, with permitted additional terms. For more information
@@ -44,10 +44,10 @@ class Loramesh:
4444
# rgb LED color for each state: disabled, detached, child, router, leader and single leader
4545
#RGBLED = [0x0A0000, 0x0A0000, 0x0A0A0A, 0x000A00, 0x00000A, 0x0A000A]
4646
RGBLED = [0x0A0000, 0x0A0000, 0x0A0A0A, 0x000A00, 0x0A000A, 0x000A0A]
47-
47+
4848
# TTN conf mode
4949
#RGBLED = [0x200505, 0x200505, 0x202020, 0x052005, 0x200020, 0x001818]
50-
50+
5151
# for outside/bright sun
5252
#RGBLED = [0xFF0000, 0xFF0000, 0x808080, 0x00FF00, 0x0000FF, 0xFF00FF]
5353

@@ -68,10 +68,10 @@ def __init__(self, config):
6868
""" Constructor """
6969
self.config = config
7070
config_lora = config.get('LoRa')
71-
self.lora = LoRa(mode=LoRa.LORA,
72-
region = config_lora.get("region"),
73-
frequency = config_lora.get("freq"),
74-
bandwidth = config_lora.get("bandwidth"),
71+
self.lora = LoRa(mode=LoRa.LORA,
72+
region = config_lora.get("region"),
73+
frequency = config_lora.get("freq"),
74+
bandwidth = config_lora.get("bandwidth"),
7575
sf = config_lora.get("sf"))
7676
self.mesh = self.lora.Mesh() #start Mesh
7777

@@ -363,7 +363,7 @@ def routers_rloc_list(self, age_min, resolve_mac = None):
363363
if resolve_mac == line.mac:
364364
mac_ip = rloc16
365365
break
366-
366+
367367
# look for this router in Leader Data
368368
# if doesn't exist, add it to routers_list with max ts
369369
# if it exists, just add it with its ts
@@ -559,7 +559,7 @@ def _init_bytes(self, data_pack):
559559
index = calcsize(self.PACK_HEADER_FMT)
560560
(self.mac, self.rloc16, lat, lon, neigh_num) = \
561561
unpack(self.PACK_HEADER_FMT, data_pack[: index])
562-
562+
563563
self.coord = (lat, lon)
564564

565565
self.role = Loramesh.STATE_ROUTER # forcer role as Router
@@ -792,4 +792,3 @@ def get_mac_ts(self, mac):
792792
# if this mac is not a router, just return ts as the oldest
793793
return 0
794794
return router.ts
795-

pymesh/pymesh_frozen/lib/mesh_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Copyright (c) 2019, Pycom Limited.
2+
# Copyright (c) 2020, Pycom Limited.
33
#
44
# This software is licensed under the GNU GPL version 3 or any
55
# later version, with permitted additional terms. For more information

pymesh/pymesh_frozen/lib/mesh_internal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Copyright (c) 2019, Pycom Limited.
2+
# Copyright (c) 2020, Pycom Limited.
33
#
44
# This software is licensed under the GNU GPL version 3 or any
55
# later version, with permitted additional terms. For more information

pymesh/pymesh_frozen/lib/meshaging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Copyright (c) 2019, Pycom Limited.
2+
# Copyright (c) 2020, Pycom Limited.
33
#
44
# This software is licensed under the GNU GPL version 3 or any
55
# later version, with permitted additional terms. For more information

pymesh/pymesh_frozen/lib/pymesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'''
2-
Copyright (c) 2019, Pycom Limited.
2+
Copyright (c) 2020, Pycom Limited.
33
This software is licensed under the GNU GPL version 3 or any
44
later version, with permitted additional terms. For more information
55
see the Pycom Licence v1.0 document supplied with this file, or

pymesh/pymesh_frozen/lib/pymesh_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'''
2-
Copyright (c) 2019, Pycom Limited.
2+
Copyright (c) 2020, Pycom Limited.
33
This software is licensed under the GNU GPL version 3 or any
44
later version, with permitted additional terms. For more information
55
see the Pycom Licence v1.0 document supplied with this file, or

pymesh/pymesh_frozen/lib/pymesh_debug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Copyright (c) 2019, Pycom Limited.
2+
# Copyright (c) 2020, Pycom Limited.
33
#
44
# This software is licensed under the GNU GPL version 3 or any
55
# later version, with permitted additional terms. For more information

pymesh/pymesh_frozen/lib/statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2019, Pycom Limited.
1+
# Copyright (c) 2020, Pycom Limited.
22
#
33
# This software is licensed under the GNU GPL version 3 or any
44
# later version, with permitted additional terms. For more information

0 commit comments

Comments
 (0)