-def get_meid(ptr_mbuf):
- """
- | Get the managed equipment ID (meid) from the message header.
- | This is a 32 byte field and RMr returns all 32 bytes which if the sender did not set will be garbage.
-
- Parameters
- ----------
- ptr_mbuf: ctypes c_void_p
- Pointer to an rmr message buffer
-
- Returns
- -------
- string:
- meid
- """
- sz = _get_constants().get("RMR_MAX_MEID", 64) # size for buffer to fill
- buf = create_string_buffer(sz)
- rmr_get_meid(ptr_mbuf, buf)
- return buf.raw.decode()
-
-