Skip to content

ModbusServerContext doesn't implement __delitem__ #20

@karlp

Description

@karlp

ModbusServerContext implements getitem and setitem (Which is awesome by the way, it lets me add/remove/change slaves at runtime)

However, the only access to removing slaves is to leave the slave id, but set the slave object to None. This works, but you get errors like "pymodbus.server.async - Datastore unable to fulfill request: 'NoneType' object has no attribute 'validate'"

Wouldn't it be better if you could simply remove the slaves outright?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions