I have a custom board with an XBee3 Cellular LTE-M doing some basic stuff. Ultimately I'm trying to connect to an MQTT server for data uploading, but so far it just always fails with a timeout.
After an appropriate amount of warm up time, the XBee has a signal, reports its own IP as something not 0.0.0.0, and can send the cell time that looks correct.
To make sure I'm even on the right track, I'm trying to use the Ping (PG) command to see if it can, say, ping google. But when I send the AT command of PG (regardless of what argument I pass it), it just immediately responds with ERROR. What am I missing on how to ping an IP address like this?
For example this send AT command fails:
gsmModem.sendAT(GF("PG"), "http://www.google.com");
For reference this is through an Arduino as the interface to the XBee, with TinyGSMClient as the library, with PubSubClient as the MQTT library.