- fprintf(stdout, "SENSOR:TYPE=ELV_ENERGY,");
- fprintf(stdout, "MODEL=EM1000-%s,",dec[0]>=1&&dec[0]<=3?types[dec[0]-1]:"?");
- fprintf(stdout, "ID=%d,",dec[1]);
- fprintf(stdout, "SEQNO=%d,",dec[2]);
- fprintf(stdout, "TOTAL=%d,",dec[3]|dec[4]<<8);
- fprintf(stdout, "CURRENT=%d,",dec[5]|dec[6]<<8);
- fprintf(stdout, "PEAK=%d\n",dec[7]|dec[8]<<8);
+ fprintf(stdout, "Energy sensor event:\n");
+ fprintf(stdout, "protocol = ELV EM 1000, %d bits\n",bitbuffer->bits_per_row[1]);
+ fprintf(stdout, "type = EM 1000-%s\n",dec[0]>=1&&dec[0]<=3?types[dec[0]-1]:"?");
+ fprintf(stdout, "code = %d\n",dec[1]);
+ fprintf(stdout, "seqno = %d\n",dec[2]);
+ fprintf(stdout, "total cnt = %d\n",dec[3]|dec[4]<<8);
+ fprintf(stdout, "current cnt = %d\n",dec[5]|dec[6]<<8);
+ fprintf(stdout, "peak cnt = %d\n",dec[7]|dec[8]<<8);