update examples for breaking change within send_location_data method, bump version
This commit is contained in:
parent
e68de95345
commit
209c0f3160
3 changed files with 3 additions and 3 deletions
|
|
@ -1 +1 @@
|
||||||
__version__ = "2.0.17"
|
__version__ = "2.0.18"
|
||||||
|
|
@ -33,4 +33,4 @@ lon = -74.005334
|
||||||
ele = 6 # elevation above sea level (meters)
|
ele = 6 # elevation above sea level (meters)
|
||||||
|
|
||||||
# Send location data to Adafruit IO
|
# 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)
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ while True:
|
||||||
print('\tLon: ', lon)
|
print('\tLon: ', lon)
|
||||||
print('\tEle: ', ele)
|
print('\tEle: ', ele)
|
||||||
# Send location data to Adafruit IO
|
# 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)
|
# shift all values (for test/demo purposes)
|
||||||
value += 1
|
value += 1
|
||||||
lat -= 0.01
|
lat -= 0.01
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue