tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
599 stars 188 forks source link

Trim quotes from IP returned by espat's GetDNS() #451

Closed Elara6331 closed 2 years ago

Elara6331 commented 2 years ago

The espat driver is unable to dial any socket because the IP returned by GetDNS() has quotes around it, and then ConnectTCPSocket() adds quotes as well, and you end up with a string that looks like ""0.0.0.0"".

This PR fixes the GetDNS() function by removing the quotes at the ends of the string before returning it.

deadprogram commented 2 years ago

Thank you for the fix @Arsen6331 now merging.