It's odd - supposedly EspruinoHub should keep updating the name if it ever receives an advertising packet with localName in it: https://github.com/espruino/EspruinoHub/blob/master/lib/discovery.js#L66
I guess you could try adding some debug info and seeing what's actually in peripheral.advertisement?
peripheral.advertisement
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
It's odd - supposedly EspruinoHub should keep updating the name if it ever receives an advertising packet with localName in it: https://github.com/espruino/EspruinoHub/blob/master/lib/discovery.js#L66
I guess you could try adding some debug info and seeing what's actually in
peripheral.advertisement
?