When I try to add a simple enum like this, it causes errors on lines near enum definition:
public enum ArduinoData{
AD_TEMP,
AD_HUMID,
AD_LUMEN,
AD_SUMP;
}
...
string[] data = message.Split(',');
Program.RaiseEvent(module1, "Sensor.Humidity", data[AD_HUMID], "Sensor 1");
Is there another way?