-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matter Thermometer Example #26
Comments
Please look here: https://github.com/jakubdybczak/esp32-arduino-matter-builder/blob/master/lib_files/examples/Light/Light.ino
When you compile the example file that I linked in previous response, you will see a link do QR code printed in your console. |
Thanks for the help! I was able to run that code on my ESP and connect it to my Google Home APP after creating a certification in the Development Console. I'm trying to create a temperature measurement endpoint so I can send data from my temperature sensor to the application. I tried this code to setup the Temperature Endpoint: // Save temperature attribute reference. It will be used to update attribute value later. But it gives me an error saying 'TemperatureMeasurementClusterAttributesStruct' is not a member of 'chip::app::Clusters::TemperatureMeasurement'. Do you have any idea/example of how to fix it? I've been looking for a guide but I can't find any. Thank you in advance |
Hi Thank you in advance. |
I've been trying to get the temperature reporting working. Could you share your temperature code? Thanks! |
Hello. Here is an example of how to send a value. #include "Matter.h" // Cluster and attribute ID used by Matter Temperature device /** Keep in mind that it IS NOT POSSIBLE to run all those endpoints due to static void on_device_event(const ChipDeviceEvent *event, intptr_t arg) {} static esp_err_t on_attribute_update(attribute::callback_type_t type, uint16_t endpoint_id, uint32_t cluster_id, void print_endpoint_info(String clusterName, endpoint_t *endpoint) { // Sets temperature attribute value } void setup() { esp_log_level_set("*", ESP_LOG_DEBUG); node::config_t node_config; endpoint_t *endpoint; temperature_sensor::config_t temperature_sensor_config; // Setup DAC (this is good place to also set custom commission data, passcodes etc.) esp_matter::start(on_device_event); PrintOnboardingCodes(chip::RendezvousInformationFlags(chip::RendezvousInformationFlag::kBLE)); void loop() { int16_t Temper = 23 * 100; //example of a measured value |
Hello, thank you for your support. Is this working on your ESP32? I'm trying to make it work, but it doesn't. |
You didn't give much information here but try adding #include "Arduino.h" and uint16_t temperature_endpoint_id = 1; |
Hey Guys!!
It's my first time using this library! (Btw, awesome library, and very helpful).
I need help with two things:
First is, I'm developing a device capable of reading temperature from a sensor and somehow I wanna make that data available so I can see it in my Google Home App. I saw some examples for button events etc but how can I "send" that data so it can be acessed?
Second is, how do I get the QR code to make the connection?
Sorry if some of this questions are kinda weird. It's my first time seeing this and I'm starting to explore and I'm kinda lost with all this information.
The text was updated successfully, but these errors were encountered: