| Package | Description |
|---|---|
| it.mauxilium.arduinojavaserialrpc |
| Modifier and Type | Method and Description |
|---|---|
void |
ArduinoJavaSerialRpc.executeLocalMethod(String methodToDo)
Discovers and executes a method of the extending class.
|
void |
ArduinoJavaSerialRpc.executeLocalMethod(String methodToDo,
float arg)
Discovers and executes a method of the extending class.
|
void |
ArduinoJavaSerialRpc.executeLocalMethod(String methodToDo,
int arg1,
int arg2)
Discovers and executes a method of the extending class.
|
void |
ArduinoJavaSerialRpc.executeLocalMethod(String methodToDo,
String arg)
Discovers and executes a method of the extending class.
|
void |
ArduinoJavaSerialRpc.executeRemoteFunction(String functionName)
Executes a function (of Arduino sketch) with signature: void functionName();.
|
float |
ArduinoJavaSerialRpc.executeRemoteFunction(String functionName,
float argument)
Executes a method (of Arduino sketch) with signature: float functionName(float);
|
Integer |
ArduinoJavaSerialRpc.executeRemoteFunction(String functionName,
int arg1,
int arg2)
Executes a function (of Arduino sketch) with signature: int functionName(int arg1, int arg2);
For example:
ArduinoSerialRpc rpc;
pinMode(2, OUTPUT);pinMode(3, OUTPUT); rpc.registerArduinoFunction("setLightIntensity", setBrightness); } // Callable method from Java program. |
String |
ArduinoJavaSerialRpc.executeRemoteFunction(String functionName,
String argument)
Executes a function (of Arduino sketch) with signature: string functionName(string);
|
String |
ArduinoJavaSerialRpc.getCardName()
Returns the card identification declared into the sketch
It is the string used as argument of ArduinoSerialRpc constructor into the sketch.
|
Copyright © 2020 Mauxilium (Gabriele Maris). All rights reserved.