This is the BTstack ports/arduino library, with compile errors fixed only.