''' Created on Mar 19, 2019 Simple Python script for Coap Test Application @author: Shyama Sastha Krishnamoorthy Srinivasan ''' from labs.module07.CoapClientConnector import CoapClientConnector #Initiating a client object and running the tests _coapClient = CoapClientConnector() _coapClient.runTests("Temperature");
def coapclient(self): host = '127.0.0.1' port = 5683 #invoke coapclientconnector to connect the server coapClientConnector = CoapClientConnector(host, port) coapClientConnector.runTests("temp")