Skip to content
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

failing to capture the payload on my pythn IDLE. needed to add the payload to a locslhost database e.g XAMPP #7

Open
kudarukuni opened this issue Aug 5, 2022 · 0 comments

Comments

@kudarukuni
Copy link

#include <Arduino.h>
#include <ESP32QRCodeReader.h>

ESP32QRCodeReader reader(CAMERA_MODEL_AI_THINKER);

void onQrCodeTask(void *pvParameters){
struct QRCodeData qrCodeData;
while (true){
if (reader.receiveQrCode(&qrCodeData, 100)){
if (qrCodeData.valid){
Serial.println((const char *)qrCodeData.payload);
}
}
vTaskDelay(100 / portTICK_PERIOD_MS);
}
}

void setup(){
Serial.begin(115200);
reader.setup();
reader.beginOnCore(1);
xTaskCreate(onQrCodeTask, "onQrCode", 4 * 1024, NULL, 4, NULL);
}

void loop(){
delay(50);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant