Skip to content

Commit

Permalink
release 1.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
cpq committed Jan 25, 2020
1 parent 89c6cec commit 20a279f
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions examples/GpioReadWrite/GpioReadWrite.ino
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static void handleGpioRead(struct jsonrpc_request *r) {
pinMode(pin, OUTPUT);
jsonrpc_return_success(r, "%d", digitalRead(pin));
} else {
jsonrpc_return_error(r, JSONRPC_ERROR_BAD_PARAMS, "%Q", "pin required");
jsonrpc_return_error(r, JSONRPC_ERROR_BAD_PARAMS, "pin required", NULL);
}
}

Expand All @@ -38,8 +38,7 @@ static void handleGpioWrite(struct jsonrpc_request *r) {
digitalWrite(pin, value);
jsonrpc_return_success(r, "true");
} else {
jsonrpc_return_error(r, JSONRPC_ERROR_BAD_PARAMS, "%Q",
"pin & value required");
jsonrpc_return_error(r, JSONRPC_ERROR_BAD_PARAMS, "pin, value required", 0);
}
}

Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=mDash
version=1.2.7
version=1.2.8
author=Cesanta Software Limited <[email protected]>
maintainer=Cesanta Software Limited <[email protected]>
sentence=Remote control and OTA for ESP32 via mdash.net IoT backend
Expand Down
Binary file modified src/esp32/libmDash.a
Binary file not shown.
Binary file modified src/linux-x64/libmDash.a
Binary file not shown.
3 changes: 2 additions & 1 deletion src/mDash.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ void jsonrpc_ctx_init(struct jsonrpc_ctx *ctx,
void *userdata);
int jsonrpc_call(mjson_print_fn_t fn, void *fndata, const char *fmt, ...);
void jsonrpc_return_error(struct jsonrpc_request *r, int code,
const char *message_fmt, ...);
const char *message, const char *data_fmt, ...);
void jsonrpc_return_success(struct jsonrpc_request *r, const char *result_fmt,
...);
void jsonrpc_ctx_process(struct jsonrpc_ctx *ctx, char *req, int req_sz,
Expand All @@ -245,6 +245,7 @@ extern struct jsonrpc_ctx jsonrpc_default_context;
#endif // MJSON_ENABLE_RPC
#endif // MJSON_H


#ifdef __cplusplus
}
#endif
Binary file modified src/macos/libmDash.a
Binary file not shown.

0 comments on commit 20a279f

Please sign in to comment.