From ef8b36d565d167ec2882ce4f8f142521657e6d53 Mon Sep 17 00:00:00 2001 From: saliehendricks Date: Wed, 27 Jul 2016 22:46:57 +0200 Subject: [PATCH] Update the json response on digital write to include the pin id This will now be present in the json "pin" : 1 much like the when getting the board info --- aREST.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aREST.h b/aREST.h index cb073ee..8de5a4f 100644 --- a/aREST.h +++ b/aREST.h @@ -1072,6 +1072,9 @@ bool send_command(bool headers) { addToBuffer(F(" set to ")); addToBuffer(value); addToBuffer(F("\", ")); + addToBuffer(F("\"pin\": ")); + addToBuffer(pin); + addToBuffer(F(", ")); } } }