Accelerometer-based fall detection using optimized ZigBee data streaming