This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uint64_t zigbees[3]; // This somehow gets initialized (list of zigbee IDs) | |
int xbfd; | |
xbapi_op op_structs[3]; | |
xbfd = xbapi_init("path to fd"); | |
for (int i = 0; i < 3; i++) { | |
xbapi_initi_op(op_structs[i]); | |
xbapi_transmit(op_structs[i], "Hello Zigbee", zigbees[i]); // Should return error codes | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
emulate -L zsh | |
setopt err_exit | |
if [[ $# -ne 1 ]]; then | |
printf "Usage: %s session_name\n" "$0" >&2 | |
exit 1 | |
fi | |
readonly SOCKDIR="/var/run/screen/S-${USER}" |