A low energy iot application using beacon for indoor localization