Serial number of Multi-Connect Conduit

Home Forums Conduit: mLinux Model Serial number of Multi-Connect Conduit

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #21182
    Yoshihiro Imamura
    Participant

    Hello,

    I am looking for a way to retrieve serial number of Multi-Connect Conduit.
    Does anyone know how to retrieve serial number from C/C++ code ?

    Any help is appreciated.

    Best Regards,

    #21183
    Jason Reiss
    Keymaster

    FILE* fd = popen(“mts-io-sysfs show device-id”, “r”);

    // Read the command result from the FILE pointer

    pclose(fd);

    #21185
    Yoshihiro Imamura
    Participant

    Hello, Jason.

    I’ve confirmed to read device-id (serial number)
    in a way you mentioned.

    Thanks so much for your support !

    #22135
    Amit Bhatia
    Participant

    Hi, can we do the same through node.js. I tried reading through a pipe but didnt succeed.
    What is the best way to get the Gateway Id in node.js

    #22143
    Jason Reiss
    Keymaster

    Send an http request to 127.0.0.1/api/system for all system info.
    Or 127.0.0.1/api/system/deviceId for just the serial number.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.