Text this: Methodology for adapting 802.15.4 standards to a gateway