Trying to pull data from an ADS1115 to display in mA in console

I’m using the following board through I2C from ncd.io
https://store.ncd.io/product/4-channel-4-20-ma-current-loop-receiver-16-bit-ads1115-i2c-mini-module/

I’m just doing some testing and are trying to see the data from the 4 channels and the 1 transmitter I have on channel one in console, but are not sure about how to have it show up.

I thought of using Particle.publish, but all I’m getting is "null"
Here is a link to the NCD example code I’m using

Any help would be appreciated.

Got it:
Particle.publish(“Input 1 reading”, String(ma) + " mA");
delay(2000);

2 Likes

Thank you for posting your solution!

Thank you very much. This helped me out a lot. Now if I can get it to start logging data I will be all set. Lol. But thats a whole other deal. :slight_smile: