Improvement
* Added all make option to Makefile * Added broker and subscriber setup on readme.md
This commit is contained in:
parent
7009cb27c4
commit
3f2913bb02
1
infidel-code/.gitignore
vendored
Normal file
1
infidel-code/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
bin/*
|
@ -6,7 +6,7 @@ DEPS:=$(shell cat ./satan.txt)
|
|||||||
MAKEFLAGS += --silent
|
MAKEFLAGS += --silent
|
||||||
|
|
||||||
|
|
||||||
all: test_401_full test_593_full
|
all: enc_593.so dec_593.so enc_401.so dec_401.so test_401_full test_593_full
|
||||||
@echo "Compiled " $@
|
@echo "Compiled " $@
|
||||||
|
|
||||||
test_401_full:
|
test_401_full:
|
||||||
|
@ -2,9 +2,7 @@
|
|||||||
|
|
||||||
### Build
|
### Build
|
||||||
|
|
||||||
make test_401_full
|
make all
|
||||||
make test_593_full
|
|
||||||
make test_593_full
|
|
||||||
|
|
||||||
### Shared Object Connector to Python Wrapper
|
### Shared Object Connector to Python Wrapper
|
||||||
|
|
||||||
@ -12,7 +10,9 @@
|
|||||||
|
|
||||||
### Test Runnner
|
### Test Runnner
|
||||||
|
|
||||||
./runner.sh
|
* Setup a mosquitto broker on target machine as example on 127.0.0.1
|
||||||
|
* Run a mosquitto subscriber or any MQTT subscriber pointing to MQTT broker at 127.0.0.1 and subsriber to 'device01/msg' topic
|
||||||
|
* ./runner.sh
|
||||||
|
|
||||||
![Runner](http://192.168.2.34/infidel/NTRU_IoT/raw/branch/master/assets/runner.png)
|
![Runner](https://git.nnag.me/infidel/NTRU_IoT/raw/branch/master/assets/runner.png)
|
||||||
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -9,7 +9,7 @@ from ctypes import *
|
|||||||
import _ctypes
|
import _ctypes
|
||||||
from textwrap import wrap
|
from textwrap import wrap
|
||||||
|
|
||||||
broker = "192.168.2.16"
|
broker = "127.0.0.1"
|
||||||
client = paho.Client()
|
client = paho.Client()
|
||||||
port = 1883
|
port = 1883
|
||||||
|
|
||||||
|
0
infidel-code/py_wrappers/python_Connector.py
Normal file → Executable file
0
infidel-code/py_wrappers/python_Connector.py
Normal file → Executable file
@ -26,7 +26,7 @@ case $testType in
|
|||||||
|
|
||||||
4)
|
4)
|
||||||
echo -e ""
|
echo -e ""
|
||||||
python3 py-wrappers/python_Connector.py
|
python3 py_wrappers/python_Connector.py
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo -n "Wrong input"
|
echo -n "Wrong input"
|
||||||
|
Loading…
Reference in New Issue
Block a user