Skip to content

Commit

Permalink
add version to broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoqiang committed Mar 27, 2019
1 parent 824e12b commit 5c9149c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion broadcast_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

import rospy

from utils.config import BROADCAST_PORT_V2
from utils.config import BROADCAST_PORT_V2, VERSION
from utils.utils import get_my_id

if __name__ == "__main__":
Expand All @@ -47,6 +47,7 @@
"id": get_my_id(),
"port": 11311,
"mac": get_mac_address(),
"version": VERSION,
}, indent=4)
# 发送广播包
try:
Expand Down
1 change: 1 addition & 0 deletions utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@
IOT_SECRET = "Jbk3GLKIZYIRrTgthbAEa9TlXHdae5UL"
IOT_KEY = "a1Eb29fVWHG"
IOT_PASSWORD = "xiaoqiang"
VERSION = "2.0.0"

0 comments on commit 5c9149c

Please sign in to comment.