Skip to content

Commit

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

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

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

Expand Down

0 comments on commit 0c6b465

Please sign in to comment.