The ip changes every time I cut the power! why?



  • ip=at("AT +CGPADDR=1")
    

    The ip changes every time I cut the power!
    Do you have any idea guys?
    Thanks for all reply



  • @furkan Why would you expect to have the same IP? And what do you need the IP for, anyway? You are most probably behind a large CGNAT with a public IP, shared with tons of other devices, different from the IP you would get here.

    If you want an identifier of the device, you should look into getting one of its MAC addresses, not an IP address.


Log in to reply
 

Pycom on Twitter