Updated EcobotAPI class to accomodate API >= V3.6.6 while maintaining backward compatibility. Also did some minor refactoring to reduce boiler plate code for REST Requests.
Detailed breakdown of changes:
Refactored to reduce boilerplate code for sending GET and POST requests.
Added method to get current api version and check if it meets a specific semantic version
For some methods, added toggling between different endpoints depending on the current api version
Added optional argument in constructor to EcobotAPI to manually specify API version , in which case it would not query the robot for the API version
This PR continues from where PR #1 left off.
Updated EcobotAPI class to accomodate API >= V3.6.6 while maintaining backward compatibility. Also did some minor refactoring to reduce boiler plate code for REST Requests.
Detailed breakdown of changes:
Things to be done before merging: