Skip to content
This repository has been archived by the owner on Jan 16, 2020. It is now read-only.

Commit

Permalink
fields config item config fixes and readonly attribute added for plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-jabble committed Nov 22, 2018
1 parent 35e7ce1 commit f512fab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -10,3 +10,6 @@ build

# packaging
packages/build

# Editor
.idea
12 changes: 6 additions & 6 deletions plugin.cpp
Expand Up @@ -40,13 +40,13 @@ using namespace rapidjson;
"\"type\": \"string\", \"default\": \"\" }, " \
"\"fields\": { " \
"\"description\": \"The fields to send ThingSpeak\", " \
"\"type\": \"JSON\", \"default\": { " \
"\"elements\":[" \
"{ \"asset\":\"sinusoid\"," \
"\"reading\":\"sinusoid\"}" \
"]} }"
"\"type\": \"JSON\", \"default\": \"{ " \
"\\\"elements\\\":[" \
"{ \\\"asset\\\":\\\"sinusoid\\\"," \
"\\\"reading\\\":\\\"sinusoid\\\"}" \
"]}\" }"

#define THINGSPEAK_PLUGIN_DESC "\"plugin\": {\"description\": \"ThingSpeak North\", \"type\": \"string\", \"default\": \"" PLUGIN_NAME "\"}"
#define THINGSPEAK_PLUGIN_DESC "\"plugin\": {\"description\": \"ThingSpeak North\", \"type\": \"string\", \"default\": \"" PLUGIN_NAME "\", \"readonly\": \"true\"}"

#define PLUGIN_DEFAULT_CONFIG_INFO "{" THINGSPEAK_PLUGIN_DESC ", " PLUGIN_DEFAULT_CONFIG "}"

Expand Down

0 comments on commit f512fab

Please sign in to comment.