Wrote code to capture data from access point: