added help method for writing to script mote serial ports
This commit is contained in:
parent
5f3c1a0e12
commit
98d23c3494
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: ScriptParser.java,v 1.3 2009/01/12 10:45:40 fros4943 Exp $
|
* $Id: ScriptParser.java,v 1.4 2009/01/15 13:11:56 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.plugins;
|
package se.sics.cooja.plugins;
|
||||||
|
@ -263,6 +263,9 @@ public class ScriptParser {
|
||||||
" msg = new java.lang.String(msg); " +
|
" msg = new java.lang.String(msg); " +
|
||||||
" node.setMoteMsg(mote, msg); " +
|
" node.setMoteMsg(mote, msg); " +
|
||||||
"};\n" +
|
"};\n" +
|
||||||
|
"function write(mote,msg) { " +
|
||||||
|
" mote.getInterfaces().getLog().writeString(msg); " +
|
||||||
|
"};\n" +
|
||||||
"function run() { " +
|
"function run() { " +
|
||||||
"SEMAPHORE_SIM.acquire(); " +
|
"SEMAPHORE_SIM.acquire(); " +
|
||||||
"SEMAPHORE_SCRIPT.acquire(); " + /* STARTUP BLOCKS HERE! */
|
"SEMAPHORE_SCRIPT.acquire(); " + /* STARTUP BLOCKS HERE! */
|
||||||
|
|
Loading…
Reference in a new issue