| |
---|
| | uint16_t cmd_afc = CMD_AFC|AFC_ON|AFC_OUT_ON|AFC_MANUAL|AFC_FINE|AFC_RL_7; |
---|
| | uint16_t cmd_dcycle = CMD_LOWDUTY|0x00; |
---|
| | uint16_t cmd_fifo = CMD_FIFO|0x00; |
---|
| | |
---|
| | uint16_t cmd_config = CMD_CONFIG|BAND_433|LOAD_CAP_12C0|BW_200; |
---|
| | uint16_t cmd_config = CMD_CONFIG|BAND_433|LOAD_CAP_12C0|BW_67; |
---|
| | uint16_t cmd_rcon = (CMD_RCON|RX_EN|VDI_DRSSI|LNA_0|RSSI_85); |
---|
| | uint16_t cmd_dfilter = (CMD_DFILTER|CR_LOCK_FAST|FILTER_OOK); |
---|
| | #endif |
---|
| | |
---|
| |
---|
| | |
---|
| | int direction = buf[8] & 0x0f; |
---|
| | |
---|
| | char *direction_str = direction_name[direction]; |
---|
| | |
---|
| | |
---|
| | if (device_id == 0) { |
---|
| | printf("Invalid station Id, zero, ignoring.\n"); |
---|
| | return; |
---|
| | } |
---|
| | printf("Station Id: %04X\n", device_id); |
---|
| | printf("Temperature: %0.1fC, Humidity: %d%%\n", temperature, humidity); |
---|
| | printf("Wind speed: %0.2f m/s, Gust Speed %0.2f m/s, %s\n", wind_avg_ms, wind_gust_ms, direction_str); |
---|
| | printf("Wind speed: %0.1f mph, Gust Speed %0.1f mph, %s\n", wind_avg_mph, wind_gust_mph, direction_str); |
---|
| |
---|
| | |