Skip to content

ChatGPT proposed code, refering to function in this library, which does not exist #41

Open
@369Martin369

Description

@369Martin369

Hi, Code ChatGPT suggested:

String generateQRCode(const String& data) {
QRCode qrcode;
uint8_t qrcodeData[qrcode_getBufferSize(3)];
qrcode_initText(&qrcode, qrcodeData, 3, 0, data.c_str());

String qrCodeHtml = "<img src="data:image/png;base64,";
qrCodeHtml += qrcode_getQRCode(&qrcode);
qrCodeHtml += "">";

return qrCodeHtml;
}

But..."qrcode_getQRCode" is not declared in qrcode.h!:
How comes that ChatGPT thinks this is part of Richard Moore's library??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions