Skip to content

Commit

Permalink
comm/iridium/HubIridiumMessenger: Fix to not send IMEI if is trimmed …
Browse files Browse the repository at this point in the history
…empty.
  • Loading branch information
paulosousadias committed Jan 9, 2025
1 parent 0c6b465 commit 02ed996
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public void sendMessageRaw(String destinationName, String imeiAddr, byte[] data)

conn.setRequestProperty( "source", GeneralPreferences.imcCcuName.toLowerCase(Locale.ROOT));
conn.setRequestProperty( "destination", destinationName);
if (imeiAddr != null && !imeiAddr.isEmpty())
if (imeiAddr != null && !imeiAddr.trim().isEmpty())
conn.setRequestProperty( "imei", imeiAddr);

conn.setRequestProperty( "Content-Length", String.valueOf(data.length * 2) );
Expand Down

0 comments on commit 02ed996

Please sign in to comment.