I'm having problems for establishing timers.
It does work if I take that specific code into a new sketch, but it doesn't in my project. Maybe due to RAM problems, I still need to check this further.
Anyway, here is the code:
Edit
I want to set 18 timers, one for each sensor.
Each call of the timer will execute sendData().
In order to know which sensor should read, it will take the AlarmID, cause it corresponds with the index of the sensor in the array ports[].
But after connecting to Galileo, it is called at unexpected times.
After putting the setting of the timers into a separate function, the function is not called at all, although the sketch can still get UDP messages and works normally.
Yes, by the moment it should print just something since I still don't have connected the sensors.
I explain it after the code. The ID alarm and the index of the corresponding sensor, are the same.
It is used in sendData(). I used integers for fast typing.
Is it actually a problem with Arduino? Because it always worked for me.
Q: How many alarms can be created?
A: Up to six alarms can be scheduled.
The number of alarms can be changed in the TimeAlarms header file (set by the constant dtNBR_ALARMS,
note that the RAM used equals dtNBR_ALARMS * 11)
Have you changed the constant in the .h file as suggested ?