here's a short bash script that will portion the message into multiple messages. i actually can't test this properly since my hub is messed up but hopefully you get the idea.
#!/bin/bash
if [[ -z ${1} ]]; then
echo No message!
exit -1
fi
echo Publishing message: $1
msg=$1
while [[ ! -z ${msg} ]]; do
data=${msg:0:20}
msg=${msg:20}
mosquitto_pub -t /ble/write/c7:6e:71:dd:ee:ff/nus/nus_tx -m "$data"
sleep 1
done
for example (assuming the script above is named 'script'):
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
here's a short bash script that will portion the message into multiple messages. i actually can't test this properly since my hub is messed up but hopefully you get the idea.
for example (assuming the script above is named 'script'):