AgApiClient URI configuration (again)

I created this - then deleted after finding about the local server api, however I still see this could be useful for me so reposting, sorry but couldn’t un-delete the other post :slight_smile:

I’m just coming up to speed with the code changes since 3+(?) years ago.

Previously the host where the requests were sent were very easily configured by changing APIROOT string however now it seems to be set in AgApiClient which doesn’t seem to have any way to configure it without changes to the client code.

Would it be worth creating a PR to make this configurable or would such a change go against the vision and forking would be the best way forward for me?

Thanks :slight_smile:

I think it might be a good idea to move the API root out of the library.

So feel free to make a PR.

:+1:

Never dealt with C++ but have a pull request sitting there to configure an apiRoot which defaults to http://hw.airgradient.com