Skip to content

Commit

Permalink
Test of Cheerp integration in the ws_hal file
Browse files Browse the repository at this point in the history
  • Loading branch information
K0rdan committed Jan 25, 2024
1 parent ded15ff commit 01368f0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion network/ws_network/HAL/BROWSER/ws_hal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ extern "C"
#ifdef __cplusplus
}
#endif

#include <cheerp/client.h>
#include <cheerp/clientlib.h>

/*******************************************************************************
* Definitions
******************************************************************************/
Expand All @@ -29,6 +33,12 @@ static const char *s_url = WS_NETWORK_BROKER_ADDR;
* Function
******************************************************************************/

[[cheerp::genericjs]]
void test()
{
client::console.log("TEST!", WS_NETWORK_BROKER_ADDR);
}

/////////////////////////Luos Library Needed function///////////////////////////

/******************************************************************************
Expand All @@ -38,8 +48,8 @@ static const char *s_url = WS_NETWORK_BROKER_ADDR;
******************************************************************************/
void WsHAL_Init(void)
{

// Create a client WebSocket instance to s_url
test();
}

/******************************************************************************
Expand Down

0 comments on commit 01368f0

Please sign in to comment.