Support for `schedule contact`
- Current REST API:
pydtn@pydtn-vbox:~/git/pyDTN/tools/send_bundle$ cat schedule_contact.json
{
"messages": [
{
"eid": "dtn:pyDTN-2.dtn",
"cla_address": "172.25.1.11:2002",
"start_offset": 5,
"end_offset": 20
}
]
}
pydtn@pydtn-vbox:~/git/pyDTN/tools/send_bundle$ cat send.sh
#!/bin/bash
# Tell uPCN-1 that pyDTN-2 is going to be available in 5s for next 15s, use REST API
echo "Scheduling contact"
curl -H "Content-Type: application/json" --data @schedule_contact.json http://localhost:8082/config || exit 1
-
Contact message above is sent to exactly 1 recipient (uPCN in this case) specified on command line
-
REST API functionality needs to be extended
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information