How to enable my wifi by sending a sms

How can i enable my wifi by sending a sms.if it is possible in ionic please tell me how can i do that…