• 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'):

    ./script "digitalPulse(LED1, 1, 100);\\n"
    
About

Avatar for dklinkman @dklinkman started