Code for Electric Imp Powered EEW Device