updated for mbed-os 5.5

Fork of Task324 by Nicholas Outram

no such method: requests