Skip to content

Commit

Permalink
Merge pull request #6 from OpenAgriTech/develop
Browse files Browse the repository at this point in the history
Updated version 0.4.3
  • Loading branch information
jajberni authored Feb 19, 2022
2 parents 622b864 + 4a33714 commit 69fd0f5
Show file tree
Hide file tree
Showing 4 changed files with 179 additions and 101 deletions.
2 changes: 1 addition & 1 deletion OTA_VERSION.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '1.0.2'
VERSION = '1.0.3'
10 changes: 5 additions & 5 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
*****************************
"""
# OTA Firmware Update parameters
WIFI_SSID = "MeteoNet"
WIFI_PW = "ChangeMe"
SERVER_IP = "161.111.157.183"

# Supported node versions
# 0x01: Original boards without SD card (green and black)
# 0x02: Pyranometer version of the node using boards v3.x
Expand All @@ -20,8 +25,3 @@

# OTAA authentication params
APP_EUI = "70B3D57ED001C537"

# OTA Firmware Update parameters
WIFI_SSID = "MeteoNet"
WIFI_PW = "ChangeMe"
SERVER_IP = "161.111.157.183"
8 changes: 4 additions & 4 deletions lib/onewire.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def read_bit(self):
pin(1) # half of the devices don't match CRC without this line
i = machine.disable_irq()
pin(0)
sleep_us(1)
#sleep_us(1)
pin(1)
sleep_us(1)
#sleep_us(1)
value = pin()
enable_irq(i)
sleep_us(40)
Expand Down Expand Up @@ -181,7 +181,7 @@ def start_convertion(self, rom=None):
"""
if (rom==None) and (len(self.roms)>0):
rom=self.roms[0]
if rom!=None:
if rom!=None:
rom = rom or self.roms[0]
ow = self.ow
ow.reset()
Expand All @@ -197,7 +197,7 @@ def read_temp_async(self, rom=None):
return None
if (rom==None) and (len(self.roms)>0):
rom=self.roms[0]
if rom==None:
if rom==None:
return None
else:
ow = self.ow
Expand Down
Loading

0 comments on commit 69fd0f5

Please sign in to comment.