Update version to 0.2.0 in app.py and pyproject.toml
This commit is contained in:
parent
034b83723c
commit
3b228b0ced
4
app.py
4
app.py
@ -10,7 +10,7 @@ from minimalmodbus import Instrument, MODE_RTU
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
VERSION = '0.1.0'
|
VERSION = '0.2.0'
|
||||||
UNIT = 16
|
UNIT = 16
|
||||||
|
|
||||||
MODBUS_FC_READ_SINGLE_COIL = int("0x01", 16)
|
MODBUS_FC_READ_SINGLE_COIL = int("0x01", 16)
|
||||||
@ -77,7 +77,7 @@ def run():
|
|||||||
# help='set to parallel mode, parameter is the unit id, can be used multiple times')
|
# help='set to parallel mode, parameter is the unit id, can be used multiple times')
|
||||||
|
|
||||||
parser.add_argument('-q', '--quiet', action='store_true', help='quiet mode, suppress all output')
|
parser.add_argument('-q', '--quiet', action='store_true', help='quiet mode, suppress all output')
|
||||||
|
parser.add_argument('-v', '--version', action='version', version=f'%(prog)s {VERSION}')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
instrument = Instrument(port=args.port, mode=MODE_RTU, slaveaddress=UNIT, debug=not args.quiet)
|
instrument = Instrument(port=args.port, mode=MODE_RTU, slaveaddress=UNIT, debug=not args.quiet)
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "xnergy-example"
|
name = "xnergy-example"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
description = "An example for Xnergy charger"
|
description = "An example for Xnergy charger"
|
||||||
authors = ["longqi <longqi90@gmail.com>"]
|
authors = ["longqi <longqi90@gmail.com>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user