fix library name

This commit is contained in:
2018-11-17 12:42:51 +01:00
parent 202dce8be9
commit ea3a2deb55
2 changed files with 4 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "sprocket-plugin-template",
"name": "sprocket-plugin-gpio",
"keywords": "sprocket, plugin",
"description": "Template for a sprocket plugin",
"description": "GPIO plugin for a Sprocket",
"authors":
{
"name": "Patrick Balsiger",
@@ -11,7 +11,7 @@
"repository":
{
"type": "git",
"url": "https://gitlab.com/wirelos/sprocket-plugin-template"
"url": "https://gitlab.com/wirelos/sprocket-plugin-gpio"
},
"frameworks": "arduino",
"platforms": "espressif8266, esp32",

View File

@@ -22,6 +22,7 @@ void addAnalogInput(Sprocket* s, int pin, const char* topic)
}, topic, _1));
s->addPlugin(new AnalogInputPlugin({pin, POT_THRESHOLD, POT_POLL_INTERVAL, topic}));
}
void addDigitalInput(Sprocket* s, int pin, const char* topic)
{
s->subscribe(topic, bind([](String label, String val){