Thanks for your help yesterday Michael - I've managed to make some good progress but have hit another brick wall.
I'm using RPCVariables within a Java Applet i'm writing, but I keep getting compile errors. It seems it will only compile if I define my RPCVariables as type Double, i.e.
RPCVariable<Double> LNB1PositionLED;
and
LNB1PositionLED = new RPCVariable<Double>(mbed,"RemoteLNB1PositionLED");
However, I need these to be integers or ideally bools and if I define them as ints or bools it wont compile. It also apperas to be case sensitive and wont compile with <double> either.
I also note that its not possible to define the RPC Variables in the mbed compiler as bools either, this throws an error in the mbed compiler. Type ints are fine in mbed.
bool RemoteLNB1ositionLED;
RPCVariable<bool> RPC_RemoteLNB1PositionLED(&RemoteLNB1PositionLED,"RemoteLNB1PositionLED");
(the above won't compile)
I've tried every combination of variable types, but can't get it to work. I like the Applet example you gave called RemoteSensing.java, but unfortunately this doesnt use RPCVariables (only RPCFunctions) so I can't see a complete example that is functional. Any ideas most appreciated please?
Hi, I'm trying to build a remote java app, but don't know how to compile the applet. I'm using the javac command in the JDK and have mbedRPC.jar in my lib folder.
I have the hello world file working, but only when I use the precompiled versions supplied. I don't seem to be able to compile the applet for myself.
It just throws up the error "package org.mbed.RPC does not exist", given the first line of helloworld.java which reads "import org.mbed.RPC.*;"
Any ideas most appreciated...