diff --git a/README.md b/README.md index d91206c0fa2c3edad26d2f50b44f9140c42b5b5f..41244fd48789bcd4549739eb6eb34c74c70f32f9 100644 --- a/README.md +++ b/README.md @@ -10,15 +10,19 @@ Helper library for easy usp communication using mqtt over tcp or ws. # Usage +To connect provide necessary info to the default export. (Values will differ depending on setup) + ```javascript const connect = require("usp-js").default const run = async () => { // Connect const usp = await connect({ - host: "192.168.1.1", - username: "admin", - password: "admin" + "host": "192.168.1.1", + "username": "admin", + "password": "admin", + "fromId": "self::usp-controller", + "toId": "proto::rx_usp_agent_mqtt" }); // Get property @@ -129,4 +133,4 @@ const usp = await connect(options); - Delete ```javascript await usp.del("Device.NAT.PortMapping.4."); // => void -``` \ No newline at end of file +```