dji-sdk / Payload-SDK

DJI Payload SDK Official Repository
https://github.com/dji-sdk/Payload-SDK
Other
261 stars 115 forks source link

How to get the hardware unique/serial code #115

Open LUX-YU opened 1 year ago

LUX-YU commented 1 year ago

Hi, DJI Developer

I'm a developer who has used Onboard SDK before. And I remember there is a function called "getHwSerialNum" that allows me to fetch the hardware serial number. I use it to identify aircraft.

So I want to know is there any way for me to fetch the same number through PSDK? I want to identify the same aircraft no matter PSDK or OSDK.

Regards

daz commented 1 year ago

https://github.com/dji-sdk/Payload-SDK/blob/59b71864e4687b2ff359f7373cae993c77756c9a/psdk_lib/include/dji_flight_controller.h#L596C1-L603C1