Skip to content

Commit acecc23

Browse files
author
Michael Ruettgers
committed
Merge branch 'release/2.1.1'
2 parents e24ee09 + 3c9ba9f commit acecc23

File tree

5 files changed

+42
-35
lines changed

5 files changed

+42
-35
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
9+
## [2.1.1] - 2020-04-15
10+
### Changed
11+
- Fixed MQTT topic to include the whole OBIS identifier
12+
- Look for a reading head attached to GPIO pin D2 by default
13+
- Switched to official libSML repository

README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -69,30 +69,30 @@ If everything is configured properly and running with a sensor in place, SMLRead
6969

7070
```
7171
MB-Monty ➜ ~ mosquitto_sub -h 10.4.32.103 -v -t smartmeter/mains/#
72-
smartmeter/mains/info Hello from 00C7551E, running SMLReader version 2.1.0.
73-
smartmeter/mains/sensor/1/obis/1-0:1.8.0/value 3531049.9
74-
smartmeter/mains/sensor/1/obis/1-0:2.8.0/value 13.2
75-
smartmeter/mains/sensor/1/obis/1-0:1.8.1/value 0.0
76-
smartmeter/mains/sensor/1/obis/1-0:2.8.1/value 13.2
77-
smartmeter/mains/sensor/1/obis/1-0:1.8.2/value 3531050.0
78-
smartmeter/mains/sensor/1/obis/1-0:2.8.2/value 0.0
79-
smartmeter/mains/sensor/1/obis/1-0:16.7.0/value 2366.8
80-
81-
smartmeter/mains/sensor/2/obis/1-0:1.8.0/value 3531049.9
82-
smartmeter/mains/sensor/2/obis/1-0:2.8.0/value 13.2
83-
smartmeter/mains/sensor/2/obis/1-0:1.8.1/value 0.0
84-
smartmeter/mains/sensor/2/obis/1-0:2.8.1/value 13.2
85-
smartmeter/mains/sensor/2/obis/1-0:1.8.2/value 3531050.0
86-
smartmeter/mains/sensor/2/obis/1-0:2.8.2/value 0.0
87-
smartmeter/mains/sensor/2/obis/1-0:16.7.0/value 2366.8
88-
89-
smartmeter/mains/sensor/3/obis/1-0:1.8.0/value 3531049.9
90-
smartmeter/mains/sensor/3/obis/1-0:2.8.0/value 13.2
91-
smartmeter/mains/sensor/3/obis/1-0:1.8.1/value 0.0
92-
smartmeter/mains/sensor/3/obis/1-0:2.8.1/value 13.2
93-
smartmeter/mains/sensor/3/obis/1-0:1.8.2/value 3531050.0
94-
smartmeter/mains/sensor/3/obis/1-0:2.8.2/value 0.0
95-
smartmeter/mains/sensor/3/obis/1-0:16.7.0/value 2366.8
72+
smartmeter/mains/info Hello from 00C7551E, running SMLReader version 2.1.1.
73+
smartmeter/mains/sensor/1/obis/1-0:1.8.0*255/value 3546245.9
74+
smartmeter/mains/sensor/1/obis/1-0:2.8.0*255/value 13.2
75+
smartmeter/mains/sensor/1/obis/1-0:1.8.1*255/value 0.0
76+
smartmeter/mains/sensor/1/obis/1-0:2.8.1*255/value 13.2
77+
smartmeter/mains/sensor/1/obis/1-0:1.8.2*255/value 3546245.9
78+
smartmeter/mains/sensor/1/obis/1-0:2.8.2*255/value 0.0
79+
smartmeter/mains/sensor/1/obis/1-0:16.7.0*255/value 451.2
80+
81+
smartmeter/mains/sensor/2/obis/1-0:1.8.0*255/value 3546245.9
82+
smartmeter/mains/sensor/2/obis/1-0:2.8.0*255/value 13.2
83+
smartmeter/mains/sensor/2/obis/1-0:1.8.1*255/value 0.0
84+
smartmeter/mains/sensor/2/obis/1-0:2.8.1*255/value 13.2
85+
smartmeter/mains/sensor/2/obis/1-0:1.8.2*255/value 3546245.9
86+
smartmeter/mains/sensor/2/obis/1-0:2.8.2*255/value 0.0
87+
smartmeter/mains/sensor/2/obis/1-0:16.7.0*255/value 451.2
88+
89+
smartmeter/mains/sensor/3/obis/1-0:1.8.0*255/value 3546245.9
90+
smartmeter/mains/sensor/3/obis/1-0:2.8.0*255/value 13.2
91+
smartmeter/mains/sensor/3/obis/1-0:1.8.1*255/value 0.0
92+
smartmeter/mains/sensor/3/obis/1-0:2.8.1*255/value 13.2
93+
smartmeter/mains/sensor/3/obis/1-0:1.8.2*255/value 3546245.9
94+
smartmeter/mains/sensor/3/obis/1-0:2.8.2*255/value 0.0
95+
smartmeter/mains/sensor/3/obis/1-0:16.7.0*255/value 451.2
9696
```
9797

9898
### Debugging

platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[common]
1212
1313
lib_deps =
14-
git+https://github.com/mruettgers/libsml
14+
git+https://github.com/volkszaehler/libsml
1515
EspSoftwareSerial
1616
MicroDebug
1717
IotWebConf

src/MqttPublisher.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ class MqttPublisher
7777
char obisIdentifier[32];
7878
char buffer[255];
7979

80-
sprintf(obisIdentifier, "%d-%d:%d.%d.%d",
80+
sprintf(obisIdentifier, "%d-%d:%d.%d.%d*%d",
8181
entry->obj_name->str[0], entry->obj_name->str[1],
8282
entry->obj_name->str[2], entry->obj_name->str[3],
83-
entry->obj_name->str[4]);
83+
entry->obj_name->str[4], entry->obj_name->str[5]);
8484

8585
String entryTopic = baseTopic + "sensor/" + (sensor->config->name) + "/obis/" + obisIdentifier + "/";
8686

src/config.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "Arduino.h"
55
#include "Sensor.h"
66

7-
const char *VERSION = "2.1.0";
7+
const char *VERSION = "2.1.1";
88

99
// Modifying the config version will probably cause a loss of the existig configuration.
1010
// Be careful!
@@ -14,13 +14,7 @@ const uint8_t STATUS_PIN = LED_BUILTIN;
1414
static const SensorConfig SENSOR_CONFIGS[] = {
1515
{.pin = D2,
1616
.name = "1",
17-
.numeric_only = false},
18-
{.pin = D5,
19-
.name = "2",
20-
.numeric_only = false},
21-
{.pin = D6,
22-
.name = "3",
23-
.numeric_only = false}};
17+
.numeric_only = false}};
2418

2519
const uint8_t NUM_OF_SENSORS = sizeof(SENSOR_CONFIGS) / sizeof(SensorConfig);
2620

0 commit comments

Comments
 (0)