mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
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
|
||||
* 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;
|
||||
@ -263,6 +263,9 @@ public class ScriptParser {
|
||||
" msg = new java.lang.String(msg); " +
|
||||
" node.setMoteMsg(mote, msg); " +
|
||||
"};\n" +
|
||||
"function write(mote,msg) { " +
|
||||
" mote.getInterfaces().getLog().writeString(msg); " +
|
||||
"};\n" +
|
||||
"function run() { " +
|
||||
"SEMAPHORE_SIM.acquire(); " +
|
||||
"SEMAPHORE_SCRIPT.acquire(); " + /* STARTUP BLOCKS HERE! */
|
||||
|
Loading…
Reference in New Issue
Block a user