450 srv_send((char *)"NAME,%s", Config.name); |
450 srv_send((char *)"NAME,%s", Config.name); |
451 srv_send((char *)"PORT,%d", Config.my_port); |
451 srv_send((char *)"PORT,%d", Config.my_port); |
452 srv_send((char *)"TEMPFORMAT,%c", Config.tempFormat); |
452 srv_send((char *)"TEMPFORMAT,%c", Config.tempFormat); |
453 srv_send((char *)"TEMP_ADDRESS,%s", Config.temp_address); |
453 srv_send((char *)"TEMP_ADDRESS,%s", Config.temp_address); |
454 srv_send((char *)"TEMP_STATE,%s", TEMPSTATE[Config.temp_state]); |
454 srv_send((char *)"TEMP_STATE,%s", TEMPSTATE[Config.temp_state]); |
455 srv_send((char *)"TEMP_VALUE,%.3f", Config.temp_value / 1000.0); |
455 srv_send((char *)"TEMP_VALUE,%.1f", Config.temp_value / 1000.0); |
456 srv_send((char *)"HUM_ADDRESS,%s", Config.hum_address); |
456 srv_send((char *)"HUM_ADDRESS,%s", Config.hum_address); |
457 srv_send((char *)"HUM_STATE,%s", TEMPSTATE[Config.hum_state]); |
457 srv_send((char *)"HUM_STATE,%s", TEMPSTATE[Config.hum_state]); |
458 srv_send((char *)"HUM_VALUE,%.3f", Config.hum_value / 1000.0); |
458 srv_send((char *)"HUM_VALUE,%.0f", Config.hum_value / 1000.0); |
459 #ifdef HAVE_WIRINGPI_H |
459 #ifdef HAVE_WIRINGPI_H |
460 srv_send((char *)"LCD_COLS,%d", Config.lcd_cols); |
460 srv_send((char *)"LCD_COLS,%d", Config.lcd_cols); |
461 srv_send((char *)"LCD_ROWS,%d", Config.lcd_rows); |
461 srv_send((char *)"LCD_ROWS,%d", Config.lcd_rows); |
462 #endif |
462 #endif |
463 srv_send((char *)"."); |
463 srv_send((char *)"."); |