Skip to content

Grabbing IP Address? #14

Answered by M65649
PhatHub asked this question in Q&A
May 4, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello,

There is an AT command for this, but we haven't implemented it in the LteClass (yet). The AT command is AT+CGPADDR. You can test this by uploading the debug_modem.ino sketch, open up a serial terminal and type the following (enter after each command):

  1. Connect to the network: AT+CFUN=1. Wait until you get +CEREG: 5.
  2. Get the IP address: AT+CGPADDR.

The documentation about the AT commands can be found in the first link here. We can implement this functionality in the library for the next release. If you'd like a go at it yourself in the meantime you can see how you can send AT commands to the modem in the custom_at_commands.ino example sketch.

If there is any specific functionality …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PhatHub
Comment options

Answer selected by PhatHub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants