Skip to content

Commit

Permalink
Merge pull request #1202 from samson0v/master
Browse files Browse the repository at this point in the history
  • Loading branch information
imbeacon authored Oct 26, 2023
2 parents 1fed219 + 8563f51 commit 33db56f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
packaging==23.1
jsonpath-rw
regex
pip
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
'grpcio==1.58.0',
'protobuf',
'cachetools',
'tb-mqtt-client>=1.5'
'tb-mqtt-client>=1.5',
'packaging==23.1'
],
download_url='https://github.com/thingsboard/thingsboard-gateway/archive/%s.tar.gz' % VERSION,
entry_points={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def convert(self, config, data):
coils = response.bits
try:
decoder = BinaryPayloadDecoder.fromCoils(coils, byteorder=endian_order,
_wordorder=word_endian_order)
wordorder=word_endian_order)
except TypeError:
decoder = BinaryPayloadDecoder.fromCoils(coils, _wordorder=word_endian_order)
decoder = BinaryPayloadDecoder.fromCoils(coils, wordorder=word_endian_order)
assert decoder is not None
decoded_data = self.decode_from_registers(decoder, configuration)
elif configuration["functionCode"] in [3, 4]:
Expand Down

0 comments on commit 33db56f

Please sign in to comment.