Home/Support/Support Forum/data.send() writes data to DRM, but gives ETIMEOUT error
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

data.send() writes data to DRM, but gives ETIMEOUT error

0 votes
I'm using an xBee3 LTE-M/NB-IOT cellular device and writing data to DRM using digi.cloud library. Data writes to DRM, but the data.send() command, always generates an ETIMEOUT error.

Here is the code:

# Upload the samples to DRM.
data = cloud.DataPoints()
data.add(DATAPOINT_CL1_VAL, pressure)
data.add(DATAPOINT_VALVE, int(tank_valve_open))
data.add(DATAPOINT_BAT_VAL, batt_value)
data.send()
drm_send_status = data.status()

I get the ETIMEOUT error after data.send() command, whether or not I include a timeout=30 or timeout=60 parameter in the data.send() command.

After the error, I check DRM and see that the 3 data points were successfully uploaded to DRM.

Is there a better way to check the status of the data.send() command?

Thanks
asked Dec 10, 2021 in Python by kwniwell New to the Community (0 points)

Please log in or register to answer this question.

...