Testing different functions.
[iotcloud.git] / version2 / src / others / functions / functions.ino
1 // ------------------------------------------------
2 // Test on function subscriptions
3 // @author Rahmadi Trimananda - UC Irvine
4 // ------------------------------------------------
5
6 // Setting up pins for input
7 void setup() {
8
9         Particle.function("12345678901",functionOne);
10         Particle.function("123456789012", functionTwo);
11         Particle.function("123", functionThree);
12         Particle.function("1234", functionFour);
13         Particle.function("12345", functionFive);
14 }
15
16 void loop() {
17
18         // Do nothing
19 }
20
21
22 int functionOne(String integer) {
23
24         return 1234;
25 }
26
27 int functionTwo(String command) {
28
29         return 1234;
30 }
31
32 int functionThree(String command) {
33
34         return 1234;
35 }
36
37 int functionFour(String command) {
38
39         return 12345678;
40 }
41
42 int functionFive(String command) {
43
44         return 1234567812345678;
45 }
46