Programmatic setting of beacon and sample timeouts