Skip to content

Commit

Permalink
0.9.10
Browse files Browse the repository at this point in the history
## [0.9.10] - 2025-01-29

### Changed

- change some uint64 convertion syntax because of Arduinos limitations
  • Loading branch information
Zeppelin500 committed Jan 29, 2025
1 parent feb6b8d commit 463cf31
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.9.10] - 2025-01-29

### Changed

- change some uint64 convertion syntax because of Arduinos limitations

## [0.9.9] - 2025-01-27

### Added
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MBusinoLib - an Arduino M-Bus Decoder Library

[![version](https://img.shields.io/badge/version-0.9.9-brightgreen.svg)](CHANGELOG.md)
[![version](https://img.shields.io/badge/version-0.9.10-brightgreen.svg)](CHANGELOG.md)
[![license](https://img.shields.io/badge/license-GPL--3.0-orange.svg)](LICENSE)


Expand Down Expand Up @@ -103,7 +103,6 @@ Returns the last error ID, once returned the error is reset to OK. Possible erro
* `MBUS_ERROR::UNSUPPORTED_CODING`: ~~The library only supports 1,2,3 and 4 bytes integers and 2,4,6 or 8 BCD.~~
* ~~`MBUS_ERROR::UNSUPPORTED_RANGE`: Couldn't encode the provided combination of code and scale, try changing the scale of your value.~~
* `MBUS_ERROR::UNSUPPORTED_VIF`: When decoding: the VIF is not supported and thus it cannot be decoded.
* `MBUS_ERROR::NEGATIVE_VALUE`: ~~Library only supports non-negative values at the moment.~~
```c
uint8_t getError(void);
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "git",
"url": "https://github.com/Zeppelin500/MBusinoLib.git"
},
"version": "0.9.9",
"version": "0.9.10",
"license": "GPL-3.0",
"frameworks": "arduino",
"platforms": ["atmelavr", "atmelsam", "espressif8266"],
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=MBusinoLib
version=0.9.9
version=0.9.10
author=Zeppelin500 <[email protected]>
maintainer=Zeppelin500 <[email protected]>
sentence=an Arduino M-Bus decoder Library
Expand Down
9 changes: 6 additions & 3 deletions src/MBusinoLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,11 @@ uint8_t MBusinoLib::decode(uint8_t *buffer, uint8_t size, JsonArray& root) {

// Init object
JsonObject data = root.add<JsonObject>();
data["vif"] = String("0x" + String(vif,HEX));
//data["code"] = vif_defs[def].code;
// data["vif"] = String("0x" + String(vif,HEX));
char vifBuffer[10] = {0};
ltoa (vif,vifBuffer,HEX);
data["vif"] = String("0x" + String(vifBuffer));
data["code"] = vif_defs[def].code;
//data["vifarray1"] = String("0x" + String(vifarray[1],HEX));
//data["vifarray2"] = String("0x" + String(vifarray[2],HEX));

Expand Down Expand Up @@ -1462,4 +1465,4 @@ uint32_t MBusinoLib::_getVIF(uint8_t code, int8_t scalar) {

return 0xFF; // this is not a valid VIF

}
}

0 comments on commit 463cf31

Please sign in to comment.