The name of this device.
The phone number of this device.
The name of the transport to use to talk to this device. This is the name as given in the settings file, not the name of the transport class itself.
This is an iterable of tuples matching regular expressions to functions, in exactly the same form as URLs are defined. When a function matches, it is called with the matching device, then each of the matched groups as the argument list. Override this in subclasses.
Example usage:
receivers = (
(r'2(.)(.{4})(.)(.{2})(.*)$', alert_handle),
(r'^1(.{4})(\d)(\d{2})(.*)$', report_handle),
)
This is called when a message is received from this device. By default it tests the message against every regular expression in the receivers list and calls the matching function, but this implementation can be overridden.
Parameters: | msg (IncomingMessage) – The received message. |
---|
Sends the given message to this FoneAstraDevice using this device’s configured transport.
Parameters: | message (string) – The message to send. Automatically handles |
---|
transports and targets.