uPing - MicroPython的ping模块

MicroPython相关代码、库、软件、工具
回复
头像
shaoziyang
帖子: 3954
注册时间: 2019年 10月 21日 13:48

uPing - MicroPython的ping模块

#1

帖子 shaoziyang »

MicroPython的ping模块:https://gist.github.com/shawwwn/91cc897 ... 34c38195fb

代码: 全选

>>> import uping
>>> uping.ping('google.com')
PING google.com (64.233.185.138): 64 data bytes
84 bytes from 64.233.185.138: icmp_seq=1, ttl=40, time=71.636004 ms
84 bytes from 64.233.185.138: icmp_seq=2, ttl=40, time=70.365000 ms
84 bytes from 64.233.185.138: icmp_seq=3, ttl=40, time=71.599998 ms
84 bytes from 64.233.185.138: icmp_seq=4, ttl=40, time=82.879000 ms
4 packets transmitted, 4 packets received
(4, 4)
>>>
 

回复

  • 随机主题
    回复总数
    阅读次数
    最新文章