airgradienthq / arduino

Firmware of open-source hardware air quality monitors AirGradient ONE (indoor) and AirGradient Open Air (outdoor).
https://www.airgradient.com/documentation/
Other
220 stars 116 forks source link

Reintroduce 'ROOTAPI' so domain and protocol can be configured #201

Closed McJoppy closed 3 months ago

McJoppy commented 4 months ago

eg. setter for api root added as comment in examples/BASIC/BASIC.ino

airgradienthq commented 3 months ago

@pnt325 Is that change also in the other example files?

pnt325 commented 3 months ago

@pnt325 Is that change also in the other example files?

Yes, all example that use http client need to update. This PR update for BASIC.ino only

McJoppy commented 3 months ago

I only have the ability to test on hardware using the basic example which is why I only updated that.

I'll add the changes to the other examples too.

airgradienthq commented 3 months ago

@McJoppy Are you updating the pull request with the other examples too?

McJoppy commented 3 months ago

I've now included comments in each example for changing APIROOT to align with BASIC.ino