Commit Graph

17 Commits (7a5017fd17e14085257a6317c1d2e4c40bf14f39)

Author SHA1 Message Date
Daniel Barlow 7a5017fd17 fix package search path in wrapper 2022-09-16 23:21:07 +01:00
Daniel Barlow 07ee2a1b0e example of nixos module/systemd service 2022-09-16 22:43:21 +01:00
Daniel Barlow d795d5a4a1 whitespace and function reordering 2022-09-16 22:00:14 +01:00
Daniel Barlow 5f71c2158f delete redundant crlf 2022-09-16 22:00:14 +01:00
Daniel Barlow 81e6837294 read config file to get smsc, phone number & device name 2022-09-16 22:00:06 +01:00
Daniel Barlow a36876194d make default.nix a function callable by callPackage 2022-09-16 18:18:37 +01:00
Daniel Barlow 63232841cd placeholder README 2022-09-16 18:01:08 +01:00
Daniel Barlow 501312d600 allow :smsc and :device params to sms module 2022-09-16 17:41:37 +01:00
Daniel Barlow 02ea16374c log serial io to _G.modem-spew instead of stdout 2022-09-16 17:41:37 +01:00
Daniel Barlow 429a661346 print unprintable characters as \u escapes 2022-09-16 17:41:37 +01:00
Daniel Barlow a78cba0a3f add test= macro for prettier assertions 2022-09-16 17:41:36 +01:00
Daniel Barlow ff83e03e0c tidying 2022-09-16 17:40:16 +01:00
Daniel Barlow b2c4972529 switch to using PDU format
this means we can now send { } [ ] and other characters that
have multi-byte encoding in the gsm character set
2022-09-16 17:39:57 +01:00
Daniel Barlow 4ca8ddcf9f add fn "command" which combines tx and expect
... also has better (any) error handling
2022-09-15 22:17:18 +01:00
Daniel Barlow 3bb143b6f4 SMS sending works for basic chars
won't send { } [ ]: hypothesis, because these characters can't
be represented in one byte of the GSM charset
2022-09-15 22:09:25 +01:00
Daniel Barlow 1928ff0681 delete debug prints 2022-09-13 20:56:11 +01:00
Daniel Barlow f75b8bd59a lua hello-world HTTP server 2022-09-13 20:55:15 +01:00