[riot-notifications] [RIOT-OS/RIOT] riotnode: initial import of shell interaction spawn (#11406)

Martine Lenders notifications at github.com
Wed Apr 24 16:23:15 CEST 2019


miri64 commented on this pull request.



> +              "-s {packet_size} -W {timeout}" \
+              .format(hostname=hostname, count=count, interval=interval,
+                      packet_size=packet_size, timeout=timeout)
+
+        if hop_limit is not None:
+            cmd += " -h {hop_limit}".format(hop_limit)
+
+        term = self.node.term
+        term.sendline(cmd)
+        res = GNRCICMPv6Echo.Results()
+
+        for c in range(count + 1):
+            res = term.expect([r"\d+ bytes from (?P<source>[0-9a-f:]+): "
+                               r"icmp_seq=(?P<seq>\d+) ttl=(?P<ttl>\d+) "
+                               r"(rssi=(?P<rssi>-?\d+) dBm )?"
+                               r"time=(?P<rtt>\d+.\d+) ms",

Note to self: `rtt` can also be omitted (when `packet_size < sizeof(uint32_t)`).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11406#pullrequestreview-230143958
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190424/860ac558/attachment-0001.html>


More information about the notifications mailing list