Skip to content
Snippets Groups Projects
Commit c9cc1ddf authored by Matthew's avatar Matthew
Browse files

fix:: incorrect return types

parent 117a9b5d
No related branches found
No related tags found
3 merge requests!4Joe merge,!3Doxygen Documentation,!2Docs
#include "VizBlocks.h"
VizBlocks(char* id, char* ssid, char* wifi_pass,
VizBlocks::VizBlocks(char* id, char* ssid, char* wifi_pass,
char* server, int port) : _id(id), _server(server), _port(port), _ssid(ssid), _wifi_pass(wifi_pass)
{};
......@@ -71,7 +71,7 @@ void VizBlocks::MQTT_connect()
Serial.println("MQTT Connected!");
};
int VizBlocks::input_event(String input)
String VizBlocks::input_event(String input)
{
return process(input);
};
......@@ -227,7 +227,7 @@ void VizBlocks::mqtt_command()
}
};
int VizBlocks::process_command(String command, String args)
String VizBlocks::process_command(String command, String args)
{
Serial.println("Processing <"+command+"> <"+args+">");
Behaviour* b = _behaviours.get(command);
......@@ -280,7 +280,7 @@ int VizBlocks::process_command(String command, String args)
}
};
int VizBlocks::process(String input)
String VizBlocks::process(String input)
{
if (!(input.indexOf("<") >= 0 || input.indexOf(">") >= 0 || input.indexOf("-") >= 0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment