Skip to content

Commit 2057e40

Browse files
Merge pull request #19 from cuplsensor/dev
Dev
2 parents ea2f758 + 71e40d4 commit 2057e40

4 files changed

Lines changed: 13 additions & 9 deletions

File tree

conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# -- Project information -----------------------------------------------------
2929

3030
project = 'codec'
31-
copyright = '2019, Malcolm Mackay'
31+
copyright = '2019, Plotsensor Ltd.'
3232
author = 'Malcolm Mackay'
3333

3434
# The short X.Y version
@@ -63,7 +63,7 @@
6363
breathe_default_project = "encoderproject" # BREATHE
6464

6565
# Add any paths that contain templates here, relative to this directory.
66-
templates_path = ['_doc_templates']
66+
templates_path = ['docs/_doc_templates']
6767

6868
# The suffix(es) of source filenames.
6969
# You can specify multiple suffix as a list of string:

docs/_doc_templates/footer.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{% extends '!footer.html' %} {% block extrafooter %} {{super}}
2+
This documentation is licenced under the <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
3+
{% endblock %}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setuptools.setup(
88
name="cuplcodec",
9-
version="2.0.2",
9+
version="2.0.3",
1010
author="Malcolm Mackay",
1111
author_email="malcolm@plotsensor.com",
1212
description="Package for creating and decoding URLs that contain temperature and humidity samples.",

wscodec/encoder/pyencoder/instrumented.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ def printint(myint):
6666

6767

6868

69-
70-
7169
class InstrumentedNDEF(InstrumentedBase):
7270
def __init__(self,
7371
baseurl='plotsensor.com',
@@ -156,7 +154,9 @@ def __init__(self,
156154
batteryadc=100,
157155
resetcause=0,
158156
usehmac=True,
159-
httpsdisable=False):
157+
httpsdisable=False,
158+
tagerror=False
159+
):
160160
super(InstrumentedSampleT, self).__init__(baseurl,
161161
serial,
162162
secretkey,
@@ -166,7 +166,7 @@ def __init__(self,
166166
resetsalltime=resetsalltime,
167167
usehmac=usehmac,
168168
httpsdisable=httpsdisable)
169-
self.ffimodule.lib.enc_init(resetcause, False, 0)
169+
self.ffimodule.lib.enc_init(resetcause, tagerror, 0)
170170

171171
def pushsamples(self, num):
172172
inlist = list()
@@ -188,7 +188,8 @@ def __init__(self,
188188
batteryadc=100,
189189
resetcause=0,
190190
usehmac=True,
191-
httpsdisable=False
191+
httpsdisable=False,
192+
tagerror=False
192193
):
193194
super(InstrumentedSampleTRH, self).__init__(baseurl,
194195
serial,
@@ -199,7 +200,7 @@ def __init__(self,
199200
resetsalltime=resetsalltime,
200201
usehmac=usehmac,
201202
httpsdisable=httpsdisable)
202-
self.ffimodule.lib.enc_init(resetcause, False, 0)
203+
self.ffimodule.lib.enc_init(resetcause, tagerror, 0)
203204

204205
def pushsamples(self, num):
205206
inlist = list()

0 commit comments

Comments
 (0)