Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Air Quality info not displaying ver6.2_b008
#6

(24-10-2022, 17:48)Werk_AG Wrote:  For me to check, can you please tell me how your receiver is defined to receive AQ data? RF or WiFi?


Code:
//---------------------------------------------------------
// Enable / Disable getting data WiFI sensors
// This can be data from the T/H sensor installed on the Wireless Display units,
// and/or T/H plus AQM data from one (just one) Air Quality Monitor (version III or II).
// If present, system can identify which one is an Air Quality Monitor, using the AQM device name defined bellow.
// Define the WiFi devices sequentially, first device, second device, and so on up to four.
//---------------------------------------------------------
#define GETDATA_FROM_WIFISENSORS 1 // 1= Enable, 0= Disable
#define WIFISENSORS_WEBSERVER_PORT 80 // WebServer Port defined on WD units (should be equal in all units)


const char* WIFIunit_address [][4]= { "192.168.1.154" // IP address of first WiFi sensor
                                                       , "192.168.1.153" // IP address of second WiFi sensor
                                                       , "192.168.1.155" // IP address of third WiFi sensor
                                                       , ""                     // IP address of fourth WiFi sensor
                                                    };

If by Wifi, one of the IP addresses on the example above should be the IP address of the Air Quality Monitor.
Also check this config setting:


Code:
//------------------------------------------------------------------------------------------
//    Enable / Disable getting Air Quality Data by WiFI instead of RF.
//    IP address of the AQM should be included in list above
//    In this case AQM sensor should be mapped to an availabe position
//    on the extra-sensors table, always using code 8 as Source, and 0 as unit (Ex: {8,0}).
//    See Mapping options and examples below.
//
//    WeatherDuino can handle Air Quality data from just one AQM sensor,
//    however can receive Temp / Hum data from a second or third AQM unit.
//    They are treated as Wireless Display units, and should be mapped with code 5,
//    and the number corresponding to the order of the defined IP address.
//-----------------------------------------------------------------------------------------
#define GETAQM_FROM_WIFI  0                     // 0= No (means get it by RF if available), 1= Yes
const char* AQM_DeviceName = "AQM-III";     // This must be the same name used for Device_ID on the Config_Options of the AQ Monitor software

... and this one, if set to 9, no AQM data will be received.
 
Code:
// ---- Define the source of your main Air Quality sensor
#define AQ_SOURCE       0  // 0= AQM Unit 0, 1= AQM Unit 1, 9 for not used

Mine is working by receiving data by RF (LoRa). Later today I will double check v6.2_b008 in receiving AQM by WiFi.

Rgs.

I am using WiFi for AQ and the IP address is correct.
Chris
Reply


Messages In This Thread



Users browsing this thread: 1 Guest(s)