mirror of
https://github.com/espressif/openthread.git
synced 2026-08-03 01:17:46 +00:00
[cli] add hex string payload for udp send (#4241)
This commit is contained in:
@@ -1062,7 +1062,7 @@ class Node:
|
||||
self._expect('Done')
|
||||
|
||||
def udp_send(self, bytes, ipaddr, port, success=True):
|
||||
cmd = 'udp send -s %d %s %d' % (bytes, ipaddr, port)
|
||||
cmd = 'udp send %s %d -s %d ' % (ipaddr, port, bytes)
|
||||
self.send_command(cmd)
|
||||
if success:
|
||||
self._expect('Done')
|
||||
|
||||
Reference in New Issue
Block a user