va_list args;
va_start(args, msg);
ucw_vmsg(L_ERROR, msg, args);
- fputc('\n', stderr);
va_end(args);
if (devh) {
case 0x0500006b:
if (len >= 2) {
int err = get_u16_be(p);
- mqtt_publish("burrow/heating/error", "%04x", err);
+ mqtt_publish("burrow/heating/error", "%d %lld", err, (long long) t);
}
break;
case 0x0500006c:
if (len >= 7) {
- mqtt_publish("burrow/heating/clock", "%04d-%02d-%02d %02d:%02d",
+ mqtt_publish("burrow/heating/clock", "%04d-%02d-%02dT%02d:%02d %lld",
get_u16_be(p) + 1900, p[2], p[3],
- p[5], p[6]);
+ p[5], p[6],
+ (long long) t);
}
break;
case 0x05000219: