Fix assignment error in SHTSPEvent

The class members and local variables had the same name, which meant event.name was always undefined.