Closed baqwas closed 4 years ago
If (and only if) these libraries are compatible (have the same method names and work in the same manner) as the Arduino Ethernet class(es), you can modify the mysql_packet.h file to include the library instead of Ethernet. Similarly, you can include the library in your sketch. If they are not compatible, you may need more extensive changes to the connector (not recommended).
On Wed, Oct 9, 2019 at 5:36 PM Matha Goram notifications@github.com wrote:
Hello,
Can someone please point me to the correct library for Client as used in the following example:
MySQL_Connection db_conn((Client *)&WiFi_client);
The MySQL_Connector_Arduino works fine for me with MKR1000 and Nano33 boards but the MXChip AZ3166 board has a different set of libraries for Wi-Fi:
-
AZ3166WiFi https://github.com/microsoft/devkit-sdk/tree/master/AZ3166/src/libraries/WiFi/src
AZ3166WiFiClient https://github.com/microsoft/devkit-sdk/blob/master/AZ3166/src/libraries/WiFi/src/AZ3166WiFiClient.h
How can I inherit Client with the AZ3166WiFi libraries? Thanks.
Kind regards.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ChuckBell/MySQL_Connector_Arduino/issues/115?email_source=notifications&email_token=AB6SHYEPNJ25J6PCFIRYPFLQNZFHTA5CNFSM4I7FDL32YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HQYJXNA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6SHYHJNQC3JHVDOTHHU5TQNZFHTANCNFSM4I7FDL3Q .
I understand your comments; did my nominal search prior to posting. All the method (and public field) names are identical. But I couldn't locate any reference to Client anywhere except in the Arduino docs, and casting to EthernetClient (which inherits Client presumably) does not work.
BTW, the solution was to update the conditional pre-processing directive to include the Wi-Fi library for the board.
Yep. That was the suggestion.
On Fri, Oct 11, 2019 at 09:39 Matha Goram notifications@github.com wrote:
BTW, the solution was to update the conditional pre-processing directive to include the Wi-Fi library for the board.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ChuckBell/MySQL_Connector_Arduino/issues/115?email_source=notifications&email_token=AB6SHYACLGYDKJ45DO6WH6DQOB6ZBA5CNFSM4I7FDL32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBAA3GY#issuecomment-541068699, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6SHYBEAKIEKDIH5TOV73TQOB6ZBANCNFSM4I7FDL3Q .
Hello,
Can someone please point me to the correct library for Client as used in the following example:
MySQL_Connection db_conn((**Client** *)&WiFi_client);
The MySQL_Connector_Arduino works fine for me with MKR1000 and Nano33 boards but the MXChip AZ3166 board has a different set of libraries for Wi-Fi:
AZ3166WiFi
AZ3166WiFiClient
How can I inherit Client with the AZ3166WiFi libraries? Thanks.
Kind regards.