How to change the MQTT messages format?

Hello,
the KURA MQTT cloud client publishes messages respecting the following formula:
#account-name/#client-id/#API-ID/topic
I want to send MQTT messages with my own format, I dont want to send the account name and the client id in the MQTT message
how can I do that?
I already tried to change the configuration in the KURA web interface -> MQTTData transport and I have deleted the content of "lwt.topic" but without success.
Thanks in advance for your help!

The following link is an iot-based Greenhouse Application Prototype:
https://github.com/kartben/kura-greenhouse-demo/blob/master/org.eclipse.iot.greenhouse.publisher/src/main/java/org/eclipse/iot/greenhouse/publisher/GreenhousePublisher.java
Here, you can see the proper usage of DataService and DataServiceListener to communicate with the Message Broker.
For, further reading, go through the following links:
http://download.eclipse.org/kura/releases/1.2.0/docs/apidocs/org/eclipse/kura/data/DataService.html
http://download.eclipse.org/kura/releases/1.2.0/docs/apidocs/org/eclipse/kura/data/DataServiceListener.html
Thanks

Similar Messages

  • How to change the automatic character format in Message Editor?

    Hi experts,
    We use PI 7.31, AAE adapter in our scenario. When we use the message monitor in Adapter Engine, we choose one message and open it in Message editor, we can see the message payload with AUTO Character Format: Windows-1252.
    The problem is we have some CN characters and they cannot display in correct formats.
    So, is there any way to change the AUTO Character format?
    The other question is, can we see the message after mapping in java message monitor?
    Thanks.
    Kevin

    Hi,
    The Quantity field which is used in sales order has a standard Data Type:QUAN
    with Decimal Places:3 so u cant change the settings in standard data element CRMT_SCHEDLIN_QUAN
    If u want the quantity field without decimals then u need to create a Z data element.
    Regards,
    PePe

  • How to change the error message Invalid login credentials

    Hi all,
    How to change the default error messages .
    1) In the Login page while giving wrong username or password .It showing
    Error message "Invalid login credentials".
    But requirement is change the above error message.
    2) I need to change the error message instead of "1 error has occureed"
    Thanks in Advance
    Sudhakar

    On the Login Page of the application create a 'Before Header' process with this code if  apex_application.g_notification ='Invalid Login Credentials' then
             apex_application.g_notification :='Your Altered Failed Login Message Here';
      end if;varad

  • How to chang the idoc  message type

    Hi,
    I want to change the idoc message type...because the idoc has the status 51...pls advice how to change
    I have tried it from we81 .......but i cant open the msg type ...when i double click on it.
    Regards,
    Somenath

    Hi,
    This may help u
    Steps To Create Custom IDOC
    1.Create Segment Type (WE31)
    Go to Transaction code WE31
    Enter Segment type, click on Create
    Give Description
    Enter the Necessary Fields & Data Elements for those Fields.
    Save the Changes.
    2.Create Idoc Type (WE30)
    Go to transaction code WE30
    Enter the Object Name, select Basic type and click Create icon
    Select the create new option and enter a description for your basic IDOC type and press enter
    Select the IDOC Name and click Create icon
    The system prompts us to enter a segment type and its attributes
    Choose the appropriate values and press Enter
    The system transfers the name of the segment type to the IDOC editor.
    Follow these steps to add more number of segments to Parent or as Parent-child relation
    Save it and go back
    Go to Edit -> Set release
    3.Create Message Type (WE81)
    Go to transaction code WE81
    Change the details from Display mode to Change modenAfter selection, the system will give this message u201CThe table is cross-client (see Help for further info)u201D. Press EnternClick New Entries to create new Message Type
    Fill details
    Save it and go back
    4.Assign Idoc Type to Message Type (WE82)
    Go to transaction code WE82
    Change the details from Display mode to Change moden After selection, the system will give this message u201CThe table is cross-client (see Help for further info)u201D. Press Enter.
    Click New Entries to create new Message Type.
    Fill details
    Save it and go back
    Regards
    Seshagiri

  • How to change the   Success Message  for Personal Data Screen in ESS

    Hi,
           While saving the Personal Data in the ESS  I want to chage the Success message.When I check the DC , Message Class  i am not able to find the  the particular string.Can any  one please  guide how to find the Success Message String   for this Personal Data Screen or Which BAPI  I  have to check .
    Regards
    Alexi

    Hi  iidhya ,
      Please find the code below
        public boolean onEvent( )
        //@@begin onEvent()
        String event = fpm.getEventData().getEventName();
              if (event.equals(IFPM.EVENT_ADD)){
                   wdThis.wdGetFcPersInfoInterface().setModeForCreate(selectedSubtype);
              }else if(event.equals(IFPM.EVENT_EDIT)){
                   wdThis.wdGetFcPersInfoInterface().setModeForEdit(wdThis.wdGetFcPersInfoInterface().getSubtypevalue(selectedRecord));                              
              }else if(event.equals(IFPM.EVENT_REMOVE)){
                   wdThis.wdGetFcPersInfoInterface().setModeForDelete(wdThis.wdGetFcPersInfoInterface().getSubtypevalue(selectedRecord));                              
              return true;
        //@@end
    Regards
    Alexi

  • How to change the date time format in jsp

    Hello Sir,
    I am trying to convert the date from one format into another format.
    In SQLServer one fields type as datetime.
    when i tried to display it in jsp with String variable it shown like below,
    2006-08-16 09:11:23.0
    how to format this value as
    Wed, Aug 16, 2006 09:11 AM
    my code is
    java.text.SimpleDateFormat fmt= new java.text.SimpleDateFormat("EEE, MMM d, yyyy K:mm a ");
    fmt.format(string value fetch from dtabase field);
    Plz provide me the solution asap. very urgent request.
    Regards
    venki.

    Hello Sir,
    I am trying to convert the date from one format into
    another format.
    In SQLServer one fields type as datetime.
    when i tried to display it in jsp with String
    variable it shown like below,
    2006-08-16 09:11:23.0
    how to format this value as
    Wed, Aug 16, 2006 09:11 AM
    my code is
    java.text.SimpleDateFormat fmt= new
    java.text.SimpleDateFormat("EEE, MMM d, yyyy K:mm a
    fmt.format(string value fetch from dtabase field);
    Plz provide me the solution asap. very urgent
    request.
    Regards
    venki.Have a look in to the below code
    import java.text.SimpleDateFormat;
    import java.util.Date;
    public class DateFormatTest
    public static void main( String[] cmdArgs )
    throws Exception
    SimpleDateFormat sdfInput =
    new SimpleDateFormat( "yyyy-MM-dd" );
    SimpleDateFormat sdfOutput =
    new SimpleDateFormat ( "EEE, d MMM yyyy hh:mm aaa" ); //Change the patterns in to what ever u need
    String textDate = "2001-01-04";
    Date date = sdfInput.parse( textDate );
    System.out.println( sdfOutput.format( date ) );
    i will suggest u to look in to the API doc you will come to know lot many things.

  • How to change the prompt message in a open file box

    Hello
    In my VI the user has to introduce several file path. They are sequenced so we know which one is requested. Is there an easy way to change the message on the "choose file to read" window in order to have "choose xxx file to read" etc... Is this through some VB programming or does labview have some tools for that ?

    There are two solutions:
    OBN's solution uses a function to get the file name.
    My solution uses the file control. You have to click on the browse button to select the file.
    Both solutions will open the system Open File dialog where the user can select the file. OBN's solution is more obvous to change the parameters. In my solution you have to use property nodes.
    See the VI (LV7.0) how my solution works.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions
    Attachments:
    Select File.vi ‏15 KB

  • XI Http adapter receiver issue, how to change the target payload format

    Dear all,
    In my project, I need to call a servlet program using Http/xml.
    The message format accepted by the server program is like this:
    request:
    <?xml version="1.0" encoding="GBK"?>
    <PACKET type="REQUEST" version="1.0" >
    <HEAD>
      <REQUEST_TYPE>01</REQUEST_TYPE>
    </HEAD>
    <BODY>
      <BASE_PART>
        <QUERY_SEQUENCE_NO></QUERY_SEQUENCE_NO>
      </BASE_PART>
    </BODY>
    </PACKET>
    response:
    <?xml version="1.0" encoding="GB2312"?>
    <PACKET type="RESPONSE" version="1.0" >
    <HEAD>
      <REQUEST_TYPE>01</REQUEST_TYPE>
      <RESPONSE_CODE>1</RESPONSE_CODE>
      <ERROR_CODE>0000</ERROR_CODE>
      <ERROR_MESSAGE>xxx</ERROR_MESSAGE>
    </HEAD>
    <BODY>
      <BASE_PART>
        <QUERY_SEQUENCE_NO>01PICC057106001156421487812453</QUERY_SEQUENCE_NO>
      </BASE_PART.
    </BODY>
    <PACKET>
    My first question is if I can use the servie by SAP PI http adapter?
    If yes, and how to design the data type? The <HEAD> <BODY> are on the same level...
    Commonly, I only can set the data type like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_HTTP_IN>
       <HEAD>
          <REQUEST_TYPE>1</REQUEST_TYPE>
       </HEAD>
       <BODY>
          <BASE_PART>
             <QUERY_SEQUENCE_NO>123</QUERY_SEQUENCE_NO>
          </BASE_PART>
       </BODY>
    </MT_HTTP_IN>
    The problem is how to remove the <MT_HTTP_IN> then insert the tab <PACKET  type="REQUEST" version="1.0" >? I wonder if I need use JAVA mapping? and could u give me a related samples?
    Thanks a lot!

    Dear Xun Liu,
       If you need <PACKET type="REQUEST" version="1.0" >, then you need to create attributes 'type' and 'version' under node <PACKET>. At mapping level you can pass constant values for those attibutes.
    Regards,
    JP.

  • How to change the calyearmonth data format in psa

    Hi all,
    my requirement is to load data to dso from csv file it contains 0calmonth characteristic and carparc keyfigure
    and i have created a transactional datasource
    and when i am loading the data in csv file my data format is 201101 but in psa it is taking 110120
    can u tell me how to correct this one.
    when i activate the request to active data table  it is showing transfered records are 12 and added records are 1 can u tell me how to correct this.
    Thanks & Regards,
    Naveen

    Hi Naveen,
    You don't need to change the original infoobject but you can do this changes in DataSource.  In your datasource goto field mapping tab and first of all you can map the date field to 0calmonth and on the same line you will have the option to choose the format.
    There you can go for internal format or External format as per requirement at the same time you have the option to provide conversion EXIT name.
    Regards,
    Durgesh.

  • How To change the Date display format to dd.mm.yyyy format

    Hello friends
    I am expected to display the date fields in my BEx reports in the standard dd/mm/yy format. However, I find that it is getting displayed in mm/dd/yyyy form.
    This is creating a bit of a confusion for the client.
    Hence can someone please let me know, if I can make any change to the way the date is displayed in the reports.
    Looking for a prompt reply
    Thanks in advance
    regards
    Zubin Kurian

    Hi Zubin,
            There are some corrections in that coding.
    year = year+2(2).
    CONCATENATE day month year INTO l_date SEPERATED BY u2018/u2019.
    Regards,
    Yokesh.

  • How to change the variable value format in Ip workbooks

    Dear Experts,
    How to add zeros to a vaiable value before passing to a planning function in BEx analyzer?
    eg: 'ZPRCTR_VAR1' (For Infoobject 0PROFIT_CTR)
    User enters value 20 for 'ZPRCTR_VAR1' , but the system know only '0000000020'. I wrote a user exit like this, but nothing happens and I get variable value 20 is incorrect, planning function cannot execute. Please advice .
    DATA ZDIVISION   TYPE /BI0/OIPROFIT_CTR.
    DATA ZDIVISION1   TYPE /BI0/OIPROFIT_CTR.
    WHEN 'ZPRCTR_VAR1'.
         IF i_step = 2.
          LOOP AT i_t_var_range INTO loc_var_range
            WHERE vnam = 'ZPRCTR_VAR1'.
            zdivision = loc_var_range-low.
           MOVE l_s_range-low to zdivision.
          ENDLOOP.
        ENDIF.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
       EXPORTING
         INPUT         = zdivision
      IMPORTING
         OUTPUT        = zdivision1.
        CLEAR l_s_range.
        l_s_range-sign  =  'I'.
        l_s_range-opt   =  'BT'.
        MOVE zdivision1 TO l_s_range-low.
        APPEND l_s_range TO e_t_range.
    Thanks,
    Gnana

    Hi Gnana,
    you can use de "area value" option when define a button with planning function and variables for passing values to function. These values are in excell cells so you can modify it as you want.
    So imagine that your planning function has only one variable, the command sequence looks like
    CMD                                           1       EXECUTE_PLANNING_FU
    PLANNING_FUNCION_NAME       1       YOUR_FUNCTION
    DATA_PROVIDER_FILTER           1       DATA_PROVIDER_1
    VAR_NAME_1                             1       YOUR_VARIABLE
    and now you delete row with VAR_VALUE_1 and in result area you use for example
    $A$1:$C$1
    Now, cell A1 = VAR_VALUE_1
    cell B1 = 1
    cell C1 = Reference to another cell with your variable value (text item). You can use any excell function for fill 0's
    And now, when you execute planning function you're passing cell C1 as value of your variable.
    Hope it helps.
    Enrique
    Edited by: Enrique Delgado on Jun 3, 2008 7:00 PM

  • How to change the message in CUCM 7.1(2) " Your Current Options"

    Hi,
    Can any one help me how to change the system message in CUCM 7.1(2) " Your Current Options" to another text.
    Thanks...

    As far as I know you can't change that on CUCM.
    On CME you can.
    Bye,
    Jan
    Sent from Cisco Technical Support iPad App

  • How to update the default date format in OBIEE 11G.

    Hi All,
    How to change the default date format in OBIEE 11g from the MM/DD to DD/MM. Could anyone please help me out ASAP?
    Thanks,
    Arpan

    Hi Arpan
    OBIEE 11g is having " localedefinitions.xml " file at this Location C:\Oracle\Middleware\Oracle_BI1\bifoundation\web\display
    in my case i installed at C:\Oracle\MIddleware.
    so
    1- Stop BI Server from EM
    2- Navigate to this Location C:\Oracle\Middleware\Oracle_BI1\bifoundation\web\display. in your case oracle home will be different
    3- take a backup of this file localedefinitions.xml "
    4- modify it and save
    5- bring BI Server up.
    Regards
    sher

  • How to change login portlet message

    how to change the login message on the login portlet "Welcome to your Portal" to custom message ?
    thanks in advance

    String customization is well explained in the ALUI dev documentation, at:
    http://edocs.bea.com/alui/devdoc/docs60/Customizing_the_Portal_UI/Using_String_Replacement/plumtreedevdoc_customizing_stringreplacement_intro.htm
    Fabien

  • To change the default date format of OID

    Hello Gurus,
    Any idea on how to change the default date format of OID?
    The default date format of OID is something like "yyyy-mm-dd hh:mm:ss .0-0700" I want to change it to "yyyymmddhhmmss.0-0800".
    Is there any system property to do the same.
    I have provisioned users from OIM to OID.
    Any ideas/clues/hints on this.
    TIA,
    - oidm.

    nobody? ?

Maybe you are looking for

  • SAP PI Connection Microsoft Exchange Server (Scenario Mail -- SAP PI -- File)

    Hi experts, we want to connect Microsoft Exchange Server to SAP PI. POP3 and IMAP4 is not allowed on mail server side. But the standard mail adapter in SAP PI  (configured as sender communication channel) only works with POP3 and IMAP4. Can anyone he

  • How to store images in database and retrieve them back to page?

    Well I don't know how to store an image file to a database (say MSSQL) from the JSP and retrieve it back whenever needed and put it on the JSP page? Please help me.

  • Move my iWeb site from my G5 to my MacBook

    I just got a new MacBook and I want to move my website from my G5 desktop to my MacBook so I can make changes from anywhere. I cant figure out how to get on the MacBook so I can edit it in iweb from my laptop. Thanks for any help you all can give.

  • Logical multiply instead of pause trigger

    Hello all! Can some one help me with gating counter with another one, i want to produce modulated timebase, first counter generate pulses in continuous mode, and another one does the same, but with lower frequency, for example f1 = 20Hz, f2 = 0,1 Hz.

  • Windows XP Pro - Adobe Reader 9 - Pages Thumbnails

    Windows XP Pro Adobe Reader 9 Pages Thumbnails How to set Adobe Reader 9 to always open files with Pages Thumbnails always ON so that the User knows there are more than 1 pages at a quick glance. Thank you.