From 420bf68779886a45edaebe2513e07dd0cc5a6b4a Mon Sep 17 00:00:00 2001 From: Brian H Date: Wed, 6 Mar 2024 15:38:23 -0700 Subject: [PATCH] Update WIT to match those in Spin Signed-off-by: Brian H --- wit/mqtt.wit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wit/mqtt.wit b/wit/mqtt.wit index 65d73b1..781182c 100644 --- a/wit/mqtt.wit +++ b/wit/mqtt.wit @@ -5,8 +5,8 @@ interface mqtt { invalid-address, /// There are too many open connections too-many-connections, - /// A retrieved value was not of the correct type - type-error, + /// Connection failure e.g. address not allowed. + connection-failed(string), /// Some other error occurred other(string), } @@ -20,7 +20,7 @@ interface mqtt { resource connection { /// Open a connection to the Mqtt instance at `address`. - open: static func(address: string, username: string, password: string, keepaliveinterval: u64) -> result; + open: static func(address: string, username: string, password: string, keep-alive-interval-in-secs: u64) -> result; /// Publish an Mqtt message to the specified `topic`. publish: func(topic: string, payload: payload, qos: qos) -> result<_, error>;