update examples for breaking change within send_location_data method, bump version

This commit is contained in:
brentru 2018-12-30 20:57:10 -05:00
parent e68de95345
commit 209c0f3160
3 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
__version__ = "2.0.17"
__version__ = "2.0.18"

View file

@ -33,4 +33,4 @@ lon = -74.005334
ele = 6 # elevation above sea level (meters)
# Send location data to Adafruit IO
aio.send_location_data(location.key, value, lat, lon, ele)
aio.send_location_data(location.key, lat, lon, ele, value)

View file

@ -49,7 +49,7 @@ while True:
print('\tLon: ', lon)
print('\tEle: ', ele)
# Send location data to Adafruit IO
aio.send_location_data(location.key, value, lat, lon, ele)
aio.send_location_data(location.key, lat, lon, ele, value)
# shift all values (for test/demo purposes)
value += 1
lat -= 0.01