Skip to main content
Visitor II
April 26, 2022
Solved

arduino: read NDEF Wi-Fi connection

  • April 26, 2022
  • 12 replies
  • 4410 views

Hi

I am trying to create an application using arduino which will read 4 NDEF text messages where will be stored data needed to establish Wi-Fi connection (host, ssid, password, token).

I did try to run example from stduion ST25 library and thats work fine but only for URL NDEF.

Do you have any working example to show how to read (not need to write) 4 different text NDEF and use those data as I described above?

I would be very gratefull for any help.

thank you!

    This topic has been closed for replies.
    Best answer by Rene Lenerve

    Hi @Community member​,

    If by updating this value, this allow you to obtain only 2 bytes more, it means for me that you have not enough memory available in your system. You can have some information with the compiler to know more about memory space used by your code.

    Another thing to check, that could result in a limitation of bytes to read, is if your i2c read function is limited by a timeout. A read of 42 bytes can spent around 1ms for a speed set to 400kbit/s on I2C.

    Hope this can help you.

    Kind Regards.

    12 replies

    RMako.2Author
    Visitor II
    May 25, 2022

    hello

    Unfortunately doesn't help.

    I tried to play with NDEF_TEXT_MAX_LENGTH for text, URI_Message for URI, NetworkSSID, NetworkKey for WiFi, NDEF_RECORD_MAX_SIZE sizes

    I cannot read more than 42 charakters, if any of messages is longer it is finish by error.

    0693W00000NqfpzQAB.png0693W00000Nqfq4QAB.png

    ST Employee
    June 8, 2022

    Hi @Community member​,

    If by updating this value, this allow you to obtain only 2 bytes more, it means for me that you have not enough memory available in your system. You can have some information with the compiler to know more about memory space used by your code.

    Another thing to check, that could result in a limitation of bytes to read, is if your i2c read function is limited by a timeout. A read of 42 bytes can spent around 1ms for a speed set to 400kbit/s on I2C.

    Hope this can help you.

    Kind Regards.