Skip to content

Commit

Permalink
Merge pull request #19 from fibonacci1729/mqtt-error
Browse files Browse the repository at this point in the history
Update WIT to match those in Spin
  • Loading branch information
fibonacci1729 authored Mar 7, 2024
2 parents cb0114f + 420bf68 commit 03c7c63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wit/mqtt.wit
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand All @@ -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<connection, error>;
open: static func(address: string, username: string, password: string, keep-alive-interval-in-secs: u64) -> result<connection, error>;

/// Publish an Mqtt message to the specified `topic`.
publish: func(topic: string, payload: payload, qos: qos) -> result<_, error>;
Expand Down

0 comments on commit 03c7c63

Please sign in to comment.