fix in CmdServer and change file name in config to .json
This commit is contained in:
@ -309,7 +309,7 @@ class CmdInterpreter(cmd.Cmd):
|
||||
self.__println("DO NOT FORGET TO SAVE AFTERWARDS!")
|
||||
|
||||
def do_save(self, arg):
|
||||
RegisterDatapoint.saveRegisterFile(self.registers, self.config.registerFile)
|
||||
RegisterDatapoint.saveRegisterList(self.registers, self.config.registerFile)
|
||||
|
||||
def help_save(self):
|
||||
self.__println("Usage: save")
|
||||
|
@ -9,7 +9,7 @@ class Config(object):
|
||||
self.mqttPassword = ''
|
||||
self.cmdAddress = '127.0.0.1'
|
||||
self.cmdPort = 9999
|
||||
self.registerFile = 'registers.pkl'
|
||||
self.registerFile = 'registers.json'
|
||||
self.serialPort = '/dev/ttyAMA0'
|
||||
self.serialBaudRate = 9600
|
||||
self.interCommDelay = 0.025
|
||||
|
@ -29,7 +29,7 @@
|
||||
"count": 1,
|
||||
"label": "Switches",
|
||||
"publishTopic": "Pub/Switches",
|
||||
"scanRate": 60.0,
|
||||
"scanRate": 0.25,
|
||||
"unit": 4,
|
||||
"updateOnly": false
|
||||
},
|
||||
|
Binary file not shown.
Reference in New Issue
Block a user