We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acec623 commit bcfb56eCopy full SHA for bcfb56e
examples/simple_bridge/simple_bridge.ino
@@ -53,5 +53,17 @@ void loop() {
53
Serial.println(Bridge.get_error_message());
54
};
55
56
+ // Call with deferred response check
57
+ RpcResult outcome = Bridge.call("multiply", 5.0, 7.0);
58
+ Serial.println("RPC called");
59
+ delay(10);
60
+ if (outcome.result(res)) {
61
+ Serial.print("Result of the operation is: ");
62
+ Serial.println(res);
63
+ } else {
64
+ Serial.println(Bridge.get_error_code());
65
+ Serial.println(Bridge.get_error_message());
66
+ }
67
+
68
Bridge.notify("signal", 200);
69
}
0 commit comments