def test_seedNotSent(self): a = TestServer(port=8080) with self.assertRaises(VSCPNoCommException): vscp() a.shutdown()
def test_noCommunicationInit(self, ): with self.assertRaises(VSCPNoCommException): vscp()
def setUp(self, ): self.server = TestServer(port=8080, welcomeMessage = "+;AUTH0;d002c278b35c152eed9ee2f475a561f1|+;AUTH1") self.client = vscp(user='******', password='******', domain='mydomain.com')
from vscphelper.vscplib import vscp from vscphelper.VSCPManager import Manager if __name__=="__main__": connection = vscp('192.168.1.133') manager = Manager(connection) manager.discover(stopNodeId = 10) print("Number of node found: {}".format(len(manager.nodes))