Software-defined Beacon/IoT device with Robust Fingerprint Learning