#9
Examples needed
I new to the go language I would like a simple example for sending messages using at package.
import package
import "github.com/xlab/at"
func main(){
dev = &Device{
CommandPort: "/dev/ttyUSB1",
NotifyPort: ?,
}
if err = dev.Open(); err != nil {
return
//how to send message code
//how to check balance code
}
}Activity
4does this lib over delivery report?
@vinhjaxt What is the best way to initiate multiple USB modems?
@vinhjaxt What is the best way to initiate multiple USB modems?
Hey! I will point in the direction but didn't test it myself.
You can create multiple configs like these to point to your different devices:
dev = &at.Device{
CommandPort: "/dev/ttyUSB2",
NotifyPort: "/dev/ttyUSB2",
}
dev2 = &at.Device{
CommandPort: "/dev/ANOTHER_ttyUSB",
NotifyPort: "/dev/ANOTHER_ttyUSB",
}Then use dev.Open() and dev.Init() as usual (and same with dev2).
From at_test.go: How to send SMS:
How to send USSD command (to check Balance):