Skip to content

Instantly share code, notes, and snippets.

@carlosdelfino
Created February 7, 2019 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlosdelfino/e5c90332100682b54b917591d352c14b to your computer and use it in GitHub Desktop.
Save carlosdelfino/e5c90332100682b54b917591d352c14b to your computer and use it in GitHub Desktop.
Arduinisk, buscando uma solução para comunicar com a porta Serial, recurso chamado SMDI, busco recurso que possa usar para envio e recebimento de dados pela porta serial, sem que seja pelo System() ou TrySystem().
[arduinisk]
exten => s,1,NoOp
exten => s,2,Set(regx="([a-zA-Z0-9]+)")
exten => s,3,Set(CCIDNAME=$["${CALLERIDNAME}": ${regx}])
exten => s,4,Set(regx="([0-9]+)")
exten => s,5,Set(CCIDNUM=$["${CALLERIDNUM}": ${regx}])
exten => s,6,ComunicaSerial("${DATETIME}, ${CCIDNAME},${CCIDNUM}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment