stop code instead of 0 if connection breaks; gpio configureable