Skip to content

Instantly share code, notes, and snippets.

View ruanmartinelli's full-sized avatar
🎯

Ruan Martinelli ruanmartinelli

🎯
View GitHub Profile
#include "/home/terra/TerraNG/terra/TerraNet.defs"
var ushort nodeId = getNodeId();
pktype usrMsg from radioMsg with
var ubyte[4] d8;
var ushort[4] d16;
var ulong[2] d32;
end
var usrMsg sndData;
#!/usr/bin/python
from __future__ import print_function
import sys
import subprocess
import time
from TOSSIM import *
outDBG = open("./log.txt","w")
outVM = open("./logVM.txt","w")