Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9f39ecbe authored by SIMONIN Matthieu's avatar SIMONIN Matthieu
Browse files

revert

parent 6516f91d
No related branches found
No related tags found
No related merge requests found
Showing with 2814 additions and 0 deletions
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
Source diff could not be displayed: it is too large. Options to address this: view the blob.
[ssh_connection]
pipelining = True
[defaults]
force_color=True
deprecation_warnings=False
interpreter_python=auto_silent
host_key_checking = False
gathering = smart
fact_caching = jsonfile
fact_caching_connection = .ansible/fact_caching
forks = 100
# add some debug output
trace_output protocol
# listen for MQTT-SN traffic on UDP port 1885
listener 1885 INADDR_ANY mqtts
ipv6 true
# listen to MQTT connections on tcp port 1886
listener 1886 INADDR_ANY
ipv6 true
diff --git a/examples/emcute_mqttsn/Makefile b/examples/emcute_mqttsn/Makefile
index 29d74962f9..07e58be2ab 100644
--- a/examples/emcute_mqttsn/Makefile
+++ b/examples/emcute_mqttsn/Makefile
@@ -42,3 +42,6 @@ DEVELHELP ?= 1
QUIET ?= 1
include $(RIOTBASE)/Makefile.include
+
+# Set a custom channel if needed
+include $(RIOTMAKE)/default-radio-settings.inc.mk
\ No newline at end of file
Jupyter + EnOSlib + G5K + FIT = 💖
===================================
This section is a work in progress.
Be adventurous, if you could contribute (feedback, pr ...) that would be
amazingly appreciated :)
.. toctree::
:maxdepth: 1
:caption: Contents:
01_networking.ipynb
02_monitoring_stack.ipynb
03_mqttsn.ipynb
03_coap.ipynb
Source diff could not be displayed: it is too large. Options to address this: view the blob.
#!/usr/bin/python3
import asyncio
import aiocoap
import argparse
import time
N = 0
async def read_sensor(protocol, sensor_addr, port = 5683):
global N
old = time.time()
request = aiocoap.Message(code=aiocoap.GET, uri='coap://[%s]:%d/riot/board' % (sensor_addr, port))
ok=1
try:
response = await protocol.request(request).response
except Exception as e:
ok=0
cur_time = time.time();
elapsed = cur_time - old
print("%f,%d,%s,%d,%f" % (cur_time, N, sensor_addr, ok, elapsed))
N += 1
async def main(args):
protocol = await aiocoap.Context.create_client_context()
aiocoap.numbers.constants.REQUEST_TIMEOUT = 30
while (True):
await read_sensor(protocol, args.address)
await asyncio.sleep(args.sleep)
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Read sensor.')
parser.add_argument('--address', '-a', type=str,
help='sensor IPv6 address')
parser.add_argument('--sleep', '-s', type=float,
help='sleep time')
args = parser.parse_args()
asyncio.get_event_loop().run_until_complete(main(args))
\ No newline at end of file
.. _jupyter:
🚀 (Jupyter) Tutorials
=======================
The sources of these tutorials are located at: https://gitlab.inria.fr/msimonin/enoslib-tutorials
.. toctree::
:maxdepth: 1
:caption: Contents:
setup_for_use_in_labs.iot-lab.info.ipynb
setup_for_use_in_g5k.ipynb
g5k/index.rst
fit_and_g5k/index.rst
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment