MQTT获取客户端IP地址

    本文地址:http://tongxinmao.com/Article/Detail/id/498

    log_dest topic
    
    sub:

    $SYS/broker/log/<log level>



    [2021/4/22 14:36:33 423]  1619073397: Socket error on client <unknown>, disconnecting.

    [2021/4/22 14:36:34 221]  MQTT[TOPIC:$SYS/broker/log/N]接收61字节: 

    [2021/4/22 14:36:34 225]  1619073398: New connection from 223.64.217.241 on port 18830.

    [2021/4/22 14:38:30 117]  MQTT[TOPIC:$SYS/broker/log/N]接收74字节: 

    [2021/4/22 14:38:30 119]  1619073514: New client connected from 183.42.41.223 as taxxxx (c1, k20).


    上一篇:PHP二进制替换修改
    下一篇:C++ 游戏操纵杆编程