If your Tanghulu didn't harden it's most likely because you didn't get the sugar mix to the correct temperature. You'll want to check that your thermometer is reading accurately. Make sure that you are heating it up to the Hard Crack stage. Another reason could be too much moisture on your fruit. To solve this, just make sure that you are thoroughly drying off your fruit during preparation.