Skip to content

Commit

Permalink
Merge pull request #13 from wildfoundry/packet-tweaks
Browse files Browse the repository at this point in the history
Packet tweaks
  • Loading branch information
willmcgugan authored Feb 1, 2017
2 parents b0b9420 + 779ea68 commit 44af640
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dataplicity/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.2"
__version__ = "0.4.3"
7 changes: 6 additions & 1 deletion dataplicity/m2m/wsclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,11 @@ def on_instruction(self, sender, data):
# Packet handlers
# -------------------------------------------------------

@expose(PacketType.null)
def handle_null(self, packet_type):
"""Ignore null packet."""
# Null packets may be sent just to check the connection

@expose(PacketType.set_identity)
def handle_set_identity(self, packet_type, identity):
"""Server is telling us about our identity."""
Expand All @@ -450,7 +455,7 @@ def handle_welcome(self, packet_type):
@expose(PacketType.log)
def handle_log(self, packet_type, msg):
"""The server has sent a message for us to write to the logs."""
log.info(msg)
log.debug(msg)

@expose(PacketType.route)
def handle_route(self, packet_type, channel, data):
Expand Down

0 comments on commit 44af640

Please sign in to comment.